diff options
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 43f8d8ad3..ce2871b3f 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -105,65 +105,12 @@ PhysicalParticleContainer::PhysicalParticleContainer (AmrCore* amr_core, int isp #endif - //variable to set plot_flags size - int plot_flag_size = PIdx::nattribs; - if(WarpX::do_back_transformed_diagnostics && do_back_transformed_diagnostics) - plot_flag_size += 6; - -#ifdef WARPX_QED - if(m_do_qed){ - // plot_flag will have an entry for the optical depth - plot_flag_size++; - } -#endif - //_______________________________ - - pp.query("plot_species", plot_species); - int do_user_plot_vars; - do_user_plot_vars = pp.queryarr("plot_vars", plot_vars); - if (not do_user_plot_vars){ - // By default, all particle variables are dumped to plotfiles, - // including {x,y,z,ux,uy,uz}old variables when running in a - // boosted frame - plot_flags.resize(plot_flag_size, 1); - } else { - // Set plot_flag to 0 for all attribs - plot_flags.resize(plot_flag_size, 0); - - // If not none, set plot_flags values to 1 for elements in plot_vars. - if (plot_vars[0] != "none"){ - for (const auto& var : plot_vars){ - // Return error if var not in PIdx. - WarpXUtilMsg::AlwaysAssert( - ParticleStringNames::to_index.count(var), - "ERROR: plot_vars argument '" + var + - "' not in ParticleStringNames" - ); - plot_flags[ParticleStringNames::to_index.at(var)] = 1; - } - } - -#ifdef WARPX_DIM_RZ - // Always write out theta, whether or not it's requested, - // to be consistent with always writing out r and z. - plot_flags[ParticleStringNames::to_index.at("theta")] = 1; -#endif - - } - // Parse galilean velocity ParmParse ppsatd("psatd"); ppsatd.query("v_galilean", v_galilean); // Scale the velocity by the speed of light for (int i=0; i<3; i++) v_galilean[i] *= PhysConst::c; -#ifdef WARPX_QED - if(m_do_qed){ - //Optical depths is always plotted if QED is on - plot_flags[plot_flag_size-1] = 1; - } -#endif - // build filter functors m_do_random_filter = pp.query("random_fraction", m_random_fraction); m_do_uniform_filter = pp.query("uniform_stride", m_uniform_stride); |