From aafb6da2362374eb255eff450b846c4fec20ac5e Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 20 Dec 2021 18:39:08 -0800 Subject: 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> --- Python/pywarpx/picmi.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Python/pywarpx/picmi.py') diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index ebfb6830a..677253405 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -432,7 +432,7 @@ class CylindricalGrid(picmistandard.PICMI_CylindricalGrid): assert self.bc_rmin != 'periodic' and self.bc_rmax != 'periodic', Exception('Radial boundaries can not be periodic') # Geometry - pywarpx.geometry.coord_sys = 1 # RZ + pywarpx.geometry.dims = 'RZ' pywarpx.geometry.prob_lo = self.lower_bound # physical domain pywarpx.geometry.prob_hi = self.upper_bound pywarpx.warpx.n_rz_azimuthal_modes = self.n_azimuthal_modes @@ -488,7 +488,7 @@ class Cartesian1DGrid(picmistandard.PICMI_Cartesian1DGrid): pywarpx.amr.blocking_factor_x = self.blocking_factor_x # Geometry - pywarpx.geometry.coord_sys = 0 # Cartesian + pywarpx.geometry.dims = '1' pywarpx.geometry.prob_lo = self.lower_bound # physical domain pywarpx.geometry.prob_hi = self.upper_bound @@ -543,7 +543,7 @@ class Cartesian2DGrid(picmistandard.PICMI_Cartesian2DGrid): pywarpx.amr.blocking_factor_y = self.blocking_factor_y # Geometry - pywarpx.geometry.coord_sys = 0 # Cartesian + pywarpx.geometry.dims = '2' pywarpx.geometry.prob_lo = self.lower_bound # physical domain pywarpx.geometry.prob_hi = self.upper_bound @@ -606,7 +606,7 @@ class Cartesian3DGrid(picmistandard.PICMI_Cartesian3DGrid): pywarpx.amr.blocking_factor_z = self.blocking_factor_z # Geometry - pywarpx.geometry.coord_sys = 0 # Cartesian + pywarpx.geometry.dims = '3' pywarpx.geometry.prob_lo = self.lower_bound # physical domain pywarpx.geometry.prob_hi = self.upper_bound -- cgit v1.2.3