diff --git a/Tests/Amr/Advection_AmrCore/Source/AmrCoreAdv.H b/Tests/Amr/Advection_AmrCore/Source/AmrCoreAdv.H index fff3de9fea..eee16a7ace 100644 --- a/Tests/Amr/Advection_AmrCore/Source/AmrCoreAdv.H +++ b/Tests/Amr/Advection_AmrCore/Source/AmrCoreAdv.H @@ -87,7 +87,7 @@ public: amrex::Real EstTimeStep (int lev, amrex::Real time); #ifdef AMREX_PARTICLES - static amrex::AmrTracerParticleContainer* theTracerPC () { return TracerPC.get(); } + amrex::AmrTracerParticleContainer* theTracerPC () { return TracerPC.get(); } #endif @@ -217,8 +217,8 @@ private: #ifdef AMREX_PARTICLES void init_particles (); - static int do_tracers; - static std::unique_ptr TracerPC; + int do_tracers = 0; + std::unique_ptr TracerPC; #endif }; diff --git a/Tests/Amr/Advection_AmrCore/Source/AmrCoreAdv.cpp b/Tests/Amr/Advection_AmrCore/Source/AmrCoreAdv.cpp index 48a5d96e37..e79d8615c1 100644 --- a/Tests/Amr/Advection_AmrCore/Source/AmrCoreAdv.cpp +++ b/Tests/Amr/Advection_AmrCore/Source/AmrCoreAdv.cpp @@ -15,14 +15,6 @@ using namespace amrex; - - -#ifdef AMREX_PARTICLES -std::unique_ptr AmrCoreAdv::TracerPC = nullptr; -int AmrCoreAdv::do_tracers = 0; -#endif - - // constructor - reads in parameters from inputs file // - sizes multilevel arrays and data structures // - initializes BCRec boundary condition object