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 +
"' 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);
133 Vector<std::string> tmp_plot_names;
135 for (
int i = 0; i <
NCONS; ++i) {
145 tmp_plot_names.push_back(
"x_velocity");
146 tmp_plot_names.push_back(
"y_velocity");
147 tmp_plot_names.push_back(
"z_velocity");
154 tmp_plot_names.push_back(
"x_cc");
155 tmp_plot_names.push_back(
"y_cc");
156 tmp_plot_names.push_back(
"z_cc");
165#ifdef REMORA_USE_PARTICLES
166 const auto& particles_namelist( particleData.getNamesUnalloc() );
167 for (
auto it = particles_namelist.cbegin(); it != particles_namelist.cend(); ++it) {
168 std::string tmp( (*it)+
"_count" );
170 tmp_plot_names.push_back(tmp);
178 Warning(
"\nWARNING: Requested to plot variable '" + plot_name +
"' but it is not available");
192 if (pp.contains(
"plot_vars")) {
193 amrex::Abort(
"You must use plot_vars_3d rather than plot_vars");
196 if (pp.contains(pp_plot_var_names_3d.c_str())) {
198 int nPltVars = pp.countval(pp_plot_var_names_3d.c_str());
199 for (
int i = 0; i < nPltVars; i++) {
200 pp.get(pp_plot_var_names_3d.c_str(), nm, i);
209 Vector<std::string> tmp_plot_names(0);
210#ifdef REMORA_USE_PARTICLES
211 Vector<std::string> particle_mesh_plot_names;
212 particleData.GetMeshPlotVarNames( particle_mesh_plot_names );
213 for (
int i = 0; i < particle_mesh_plot_names.size(); i++) {
214 std::string tmp(particle_mesh_plot_names[i]);
216 tmp_plot_names.push_back(tmp);
221 for (
int i = 0; i < tmp_plot_names.size(); i++) {
234 if (pp.contains(pp_plot_var_names_2d.c_str())) {
236 int nPltVars = pp.countval(pp_plot_var_names_2d.c_str());
237 for (
int i = 0; i < nPltVars; i++) {
238 pp.get(pp_plot_var_names_2d.c_str(), nm, i);
247 Vector<std::string> tmp_plot_names(0);
248#ifdef REMORA_USE_PARTICLES
249 Vector<std::string> particle_mesh_plot_names;
250 particleData.GetMeshPlotVarNames( particle_mesh_plot_names );
251 for (
int i = 0; i < particle_mesh_plot_names.size(); i++) {
252 std::string tmp(particle_mesh_plot_names[i]);
254 tmp_plot_names.push_back(tmp);
259 for (
int i = 0; i < tmp_plot_names.size(); i++) {