diff options
author | 2020-03-30 09:11:46 -0700 | |
---|---|---|
committer | 2020-03-30 09:11:46 -0700 | |
commit | 6f0b426c352330a317236814d6369f7640561092 (patch) | |
tree | a17cb8f0f245d74e4abee704b6eeec7f7cd9a691 /Python/pywarpx/picmi.py | |
parent | 6a425feed17500c087a78243d29edd86a70df52f (diff) | |
download | WarpX-6f0b426c352330a317236814d6369f7640561092.tar.gz WarpX-6f0b426c352330a317236814d6369f7640561092.tar.zst WarpX-6f0b426c352330a317236814d6369f7640561092.zip |
Added blocking factor to 2d and RZ geometries (#864)
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r-- | Python/pywarpx/picmi.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index aa5785eb6..f6092f0c3 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -331,6 +331,7 @@ class CylindricalGrid(picmistandard.PICMI_CylindricalGrid): # Maximum allowable size of each subdomain in the problem domain; # this is used to decompose the domain for parallel calculations. pywarpx.amr.max_grid_size = self.max_grid_size + pywarpx.amr.blocking_factor = self.blocking_factor assert self.lower_bound[0] >= 0., Exception('Lower radial boundary must be >= 0.') assert self.bc_rmin != 'periodic' and self.bc_rmax != 'periodic', Exception('Radial boundaries can not be periodic') @@ -373,6 +374,7 @@ class Cartesian2DGrid(picmistandard.PICMI_Cartesian2DGrid): # Maximum allowable size of each subdomain in the problem domain; # this is used to decompose the domain for parallel calculations. pywarpx.amr.max_grid_size = self.max_grid_size + pywarpx.amr.blocking_factor = self.blocking_factor # Geometry pywarpx.geometry.coord_sys = 0 # Cartesian @@ -411,7 +413,6 @@ class Cartesian3DGrid(picmistandard.PICMI_Cartesian3DGrid): # Maximum allowable size of each subdomain in the problem domain; # this is used to decompose the domain for parallel calculations. pywarpx.amr.max_grid_size = self.max_grid_size - pywarpx.amr.blocking_factor = self.blocking_factor # Geometry |