diff options
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index a01d80858..52d77fd25 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -464,6 +464,9 @@ WarpX::PrintGlobalWarnings(const std::string& when) void WarpX::ReadParameters () { + // Ensure that geometry.dims is set properly. + CheckDims(); + { ParmParse pp;// Traditionally, max_step and stop_time do not have prefix. queryWithParser(pp, "max_step", max_step); @@ -1367,6 +1370,13 @@ WarpX::BackwardCompatibility () "lasers.nlasers is ignored. Just use lasers.names please.", WarnPriority::low); } + ParmParse pp_geometry("geometry"); + std::string coord_sys; + if (pp_geometry.query("coord_sys", coord_sys)){ + this->RecordWarning("Geometry", + "geometry.coord_sys is ignored. Please use the new geometry.dims parameter.", + WarnPriority::low); + } } // This is a virtual function. |