aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2021-12-20 18:39:08 -0800
committerGravatar GitHub <noreply@github.com> 2021-12-21 02:39:08 +0000
commitaafb6da2362374eb255eff450b846c4fec20ac5e (patch)
tree8a24908133d464a84aedd82d07ccc720808e8b6a /Source/WarpX.cpp
parent634a2833a7a13cffde77c5d3229e0566c327f096 (diff)
downloadWarpX-aafb6da2362374eb255eff450b846c4fec20ac5e.tar.gz
WarpX-aafb6da2362374eb255eff450b846c4fec20ac5e.tar.zst
WarpX-aafb6da2362374eb255eff450b846c4fec20ac5e.zip
Inputs: `geometry.dims` option (#2685)
* Docs: `geometry.dims` option Add a new, required option to specify the geometry of an inputs file at runtime. * Check & Report Runtime Dims Mismatch * Examples: add `geometry.dims` * Deprecation Warning: `geometry.coord_sys` * PICMI: `geometry.dims` * Improve error message sounds a bit better * Improve Doc Description Co-authored-by: Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> Co-authored-by: Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com>
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp10
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.