From 829a763b7a4166ddae05edb3834302525f4207b8 Mon Sep 17 00:00:00 2001 From: Ann Almgren Date: Wed, 22 Nov 2023 11:51:52 -0800 Subject: [PATCH] fix particles in ERF.cpp (#1313) --- Source/ERF.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/ERF.cpp b/Source/ERF.cpp index 1862a5ac3..7bf30f541 100644 --- a/Source/ERF.cpp +++ b/Source/ERF.cpp @@ -27,7 +27,8 @@ amrex::Real ERF::previousCPUTimeUsed = 0.0; Vector ERF::ref_tags; SolverChoice ERF::solverChoice; -#ifdef ERF_USE_MULTIBLOCK + +#ifdef ERF_USE_PARTICLES ParticleData ERF::particleData; #endif @@ -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 @@ -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);