Skip to content

Commit

Permalink
fix particles in ERF.cpp (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren authored Nov 22, 2023
1 parent dbe1db5 commit 829a763
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/ERF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ amrex::Real ERF::previousCPUTimeUsed = 0.0;
Vector<AMRErrorTag> ERF::ref_tags;

SolverChoice ERF::solverChoice;
#ifdef ERF_USE_MULTIBLOCK

#ifdef ERF_USE_PARTICLES
ParticleData ERF::particleData;
#endif

Expand Down Expand Up @@ -953,7 +954,6 @@ ERF::ReadParameters ()
pp.query("fixed_mri_dt_ratio", fixed_mri_dt_ratio);

#ifdef ERF_USE_PARTICLES
particleData.init_particles((amrex::ParGDBBase*)GetParGDB(),z_phys_nd);
particleData.init_particle_params();
#endif

Expand Down Expand Up @@ -1116,8 +1116,8 @@ ERF::ReadParameters ()
solverChoice.pp_prefix = pp_prefix;
#endif

#ifdef ERF_USE_MULTIBLOCK
Particleinit_particle_params();
#ifdef ERF_USE_PARTICLES
particleData.init_particle_params();
#endif

solverChoice.init_params(max_level);
Expand Down

0 comments on commit 829a763

Please sign in to comment.