diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Evolve/WarpXEvolve.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Evolve/WarpXEvolve.cpp b/Source/Evolve/WarpXEvolve.cpp index 5ac06d8d0..1e66f1ed8 100644 --- a/Source/Evolve/WarpXEvolve.cpp +++ b/Source/Evolve/WarpXEvolve.cpp @@ -42,6 +42,8 @@ WarpX::Evolve (int numsteps) numsteps_max = std::min(istep[0]+numsteps, max_step); } + bool early_params_checked = false; // check typos in inputs after step 1 + Real walltime, walltime_start = amrex::second(); for (int step = istep[0]; step < numsteps_max && cur_time < stop_time; ++step) { @@ -236,6 +238,13 @@ WarpX::Evolve (int numsteps) if (warpx_py_afterstep) warpx_py_afterstep(); + // inputs: unused parameters (e.g. typos) check after step 1 has finished + if (!early_params_checked) { + amrex::Print() << "\n"; // better: conditional \n based on return value + amrex::ParmParse().QueryUnusedInputs(); + early_params_checked = true; + } + // End loop on time steps } |