diff options
author | 2020-12-14 11:05:48 -0800 | |
---|---|---|
committer | 2020-12-14 11:05:48 -0800 | |
commit | 7458684c73b891e9fa6a0a6908a0383b6e14b0ab (patch) | |
tree | b77c1cab01f7d80a0579f2ed91fa4c11ebf5f240 /Examples/Tests/particles_in_PML/analysis_particles_in_pml.py | |
parent | 8771d3f7086a3100d42187c7e669b5460740b4e5 (diff) | |
download | WarpX-7458684c73b891e9fa6a0a6908a0383b6e14b0ab.tar.gz WarpX-7458684c73b891e9fa6a0a6908a0383b6e14b0ab.tar.zst WarpX-7458684c73b891e9fa6a0a6908a0383b6e14b0ab.zip |
Create coarse patch pml (#1490)
* send full refRatio IntVect for PML constructor
* ref ratio in PML constructor is an IntVect
* create coarsened box array for PML with lev>0
* add comment clarifying uniform ref ratio
* fix eol
* minimal Box for coarse pml patch
* some more comment
* add warning message
* gix eol
* Add CI test for MR in 2d and 3d with checksum benchmarks and modified analaysis
* remove tab
* plotfile period set to last timestep for CI test
Co-authored-by: Revathi Jambunathan <revanathan@pop-os.localdomain>
Diffstat (limited to 'Examples/Tests/particles_in_PML/analysis_particles_in_pml.py')
-rwxr-xr-x | Examples/Tests/particles_in_PML/analysis_particles_in_pml.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Examples/Tests/particles_in_PML/analysis_particles_in_pml.py b/Examples/Tests/particles_in_PML/analysis_particles_in_pml.py index 94612eeda..c91526df4 100755 --- a/Examples/Tests/particles_in_PML/analysis_particles_in_pml.py +++ b/Examples/Tests/particles_in_PML/analysis_particles_in_pml.py @@ -38,9 +38,15 @@ print( "max_Efield = %s" %max_Efield ) # The field associated with the particle does not have # the same amplitude in 2d and 3d if ds.dimensionality == 2: - tolerance_abs = 0.0003 + if ds.max_level == 0: + tolerance_abs = 0.0003 + elif ds.max_level == 1: + tolerance_abs = 0.0006 elif ds.dimensionality == 3: - tolerance_abs = 10 + if ds.max_level == 0: + tolerance_abs = 10 + elif ds.max_level == 1: + tolerance_abs = 110 else: raise ValueError("Unknown dimensionality") |