20 if (pp.contains(
"plot_vars")) {
21 amrex::Abort(
"You must use plot_vars_3d rather than plot_vars");
24 if (pp.contains(pp_plot_var_names_3d.c_str()))
28 int nPltVars = pp.countval(pp_plot_var_names_3d.c_str());
30 for (
int i = 0; i < nPltVars; i++)
32 pp.get(pp_plot_var_names_3d.c_str(), nm, i);
49 Vector<std::string> tmp_plot_names;
51 for (
int i = 0; i <
ncons; ++i) {
61 tmp_plot_names.push_back(
"x_velocity");
62 tmp_plot_names.push_back(
"y_velocity");
63 tmp_plot_names.push_back(
"z_velocity");
70 tmp_plot_names.push_back(
"x_cc");
71 tmp_plot_names.push_back(
"y_cc");
72 tmp_plot_names.push_back(
"z_cc");
81#ifdef REMORA_USE_PARTICLES
82 const auto& particles_namelist( particleData.getNamesUnalloc() );
83 for (
auto it = particles_namelist.cbegin(); it != particles_namelist.cend(); ++it) {
84 std::string tmp( (*it)+
"_count" );
86 tmp_plot_names.push_back(tmp);
94 Warning(
"\nWARNING: Requested to plot variable '" + plot_name +
"' in 3D list but it is not available");
108 if (pp.contains(pp_plot_var_names_2d.c_str()))
112 int nPltVars = pp.countval(pp_plot_var_names_2d.c_str());
114 for (
int i = 0; i < nPltVars; i++)
116 pp.get(pp_plot_var_names_2d.c_str(), nm, i);
137 for (
int n = 0; n <
ncons; ++n) {
138 const std::string nm = std::string(
"diff2_") +
cons_names[n];
145 Vector<std::string> tmp_plot_names;
165 tmp_plot_names.push_back(
"visc2");
167 for (
int n = 0; n <
ncons; ++n) {
168 const std::string nm = std::string(
"diff2_") +
cons_names[n];
170 tmp_plot_names.push_back(nm);
173 for (
int n = 0; n <
ncons; ++n) {
174 const std::string nm = std::string(
"stflux_") +
cons_names[n];
176 tmp_plot_names.push_back(nm);
188 Warning(
"\nWARNING: Requested to plot variable '" + plot_name +
"' in 2D list but it is not available");
202 if (pp.contains(
"plot_vars")) {
203 amrex::Abort(
"You must use plot_vars_3d rather than plot_vars");
206 if (pp.contains(pp_plot_var_names_3d.c_str())) {
208 int nPltVars = pp.countval(pp_plot_var_names_3d.c_str());
209 for (
int i = 0; i < nPltVars; i++) {
210 pp.get(pp_plot_var_names_3d.c_str(), nm, i);
219 Vector<std::string> tmp_plot_names(0);
220#ifdef REMORA_USE_PARTICLES
221 Vector<std::string> particle_mesh_plot_names;
222 particleData.GetMeshPlotVarNames( particle_mesh_plot_names );
223 for (
int i = 0; i < particle_mesh_plot_names.size(); i++) {
224 std::string tmp(particle_mesh_plot_names[i]);
226 tmp_plot_names.push_back(tmp);
231 for (
int i = 0; i < tmp_plot_names.size(); i++) {
244 if (pp.contains(pp_plot_var_names_2d.c_str())) {
246 int nPltVars = pp.countval(pp_plot_var_names_2d.c_str());
247 for (
int i = 0; i < nPltVars; i++) {
248 pp.get(pp_plot_var_names_2d.c_str(), nm, i);
257 Vector<std::string> tmp_plot_names(0);
258#ifdef REMORA_USE_PARTICLES
259 Vector<std::string> particle_mesh_plot_names;
260 particleData.GetMeshPlotVarNames( particle_mesh_plot_names );
261 for (
int i = 0; i < particle_mesh_plot_names.size(); i++) {
262 std::string tmp(particle_mesh_plot_names[i]);
264 tmp_plot_names.push_back(tmp);
269 for (
int i = 0; i < tmp_plot_names.size(); i++) {