Skip to content
Snippets Groups Projects
Commit 52c42254 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

remove redundant template parameter

parent 2c88a411
Branches
Tags
No related merge requests found
...@@ -357,12 +357,12 @@ class NavierStokes(bfps.fluid_base.fluid_particle_base): ...@@ -357,12 +357,12 @@ class NavierStokes(bfps.fluid_base.fluid_particle_base):
multistep = 'true' multistep = 'true'
else: else:
multistep = 'false' multistep = 'false'
self.particle_variables += 'particles<VELOCITY_TRACER, {0}, {1}, 3, {2}> *ps{3};\n'.format( self.particle_variables += 'particles<VELOCITY_TRACER, {0}, {1}, {2}> *ps{3};\n'.format(
self.C_dtype, self.C_dtype,
multistep, multistep,
neighbours, neighbours,
self.particle_species) self.particle_species)
self.particle_start += ('ps{0} = new particles<VELOCITY_TRACER, {1}, {2}, 3, {3}>(\n' + self.particle_start += ('ps{0} = new particles<VELOCITY_TRACER, {1}, {2},{3}>(\n' +
'fname, fs, vel_{4},\n' + 'fname, fs, vel_{4},\n' +
'nparticles,\n' + 'nparticles,\n' +
'niter_part, integration_steps{0});\n').format( 'niter_part, integration_steps{0});\n').format(
......
This diff is collapsed.
...@@ -41,7 +41,7 @@ extern int myrank, nprocs; ...@@ -41,7 +41,7 @@ extern int myrank, nprocs;
/* particle types */ /* particle types */
enum particle_types {VELOCITY_TRACER}; enum particle_types {VELOCITY_TRACER};
template <int particle_type, class rnumber, bool multistep, int ncomponents, int interp_neighbours> template <int particle_type, class rnumber, bool multistep, int interp_neighbours>
class particles class particles
{ {
public: public:
...@@ -67,6 +67,7 @@ class particles ...@@ -67,6 +67,7 @@ class particles
double *state; double *state;
double *rhs[6]; double *rhs[6];
int nparticles; int nparticles;
int ncomponents;
int array_size; int array_size;
int integration_steps; int integration_steps;
int traj_skip; int traj_skip;
...@@ -103,7 +104,6 @@ class particles ...@@ -103,7 +104,6 @@ class particles
const int TRAJ_SKIP, const int TRAJ_SKIP,
const int INTEGRATION_STEPS = 2); const int INTEGRATION_STEPS = 2);
~particles(); ~particles();
void rFFTW_to_buffered(void *src, void *dst);
/* an Euler step is needed to compute an estimate of future positions, /* an Euler step is needed to compute an estimate of future positions,
* which is needed for synchronization. * which is needed for synchronization.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment