Skip to content

Commit 724c338

Browse files
committed
inputs_3d: Move Inputs From runtime_params
1 parent 379372c commit 724c338

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Examples/Physics_applications/laser_acceleration/inputs_3d

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#################################
22
####### GENERAL PARAMETERS ######
33
#################################
4-
max_step = 1000
5-
amr.n_cell = 64 64 512
4+
max_step = 100 # for production, run for longer time, e.g. max_step = 1000
5+
amr.n_cell = 32 32 256 # for production, run with finer mesh, e.g. amr.n_cell = 64 64 512
66
amr.max_grid_size = 64 # maximum size of each AMReX box, used to decompose the domain
77
amr.blocking_factor = 32 # minimum size of each AMReX box, used to decompose the domain
88
geometry.dims = 3
@@ -28,6 +28,8 @@ warpx.cfl = 1. # if 1., the time step is set to its CFL limit
2828
warpx.do_moving_window = 1
2929
warpx.moving_window_dir = z # Only z is supported for the moment
3030
warpx.moving_window_v = 1.0 # units of speed of light
31+
warpx.do_dynamic_scheduling = 0
32+
warpx.serialize_ics = 1
3133

3234
# Order of particle shape factors
3335
algo.particle_shape = 3
@@ -45,7 +47,7 @@ electrons.xmin = -20.e-6
4547
electrons.xmax = 20.e-6
4648
electrons.ymin = -20.e-6
4749
electrons.ymax = 20.e-6
48-
electrons.zmin = 10.e-6
50+
electrons.zmin = 0
4951
electrons.profile = constant
5052
electrons.density = 2.e23 # number of electrons per m^3
5153
electrons.momentum_distribution_type = "at_rest"

Regression/WarpX-tests.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ analysisRoutine = Examples/Modules/laser_injection/analysis_1d.py
877877
[LaserAcceleration]
878878
buildDir = .
879879
inputFile = Examples/Physics_applications/laser_acceleration/inputs_3d
880-
runtime_params = warpx.do_dynamic_scheduling=0 amr.n_cell=32 32 256 max_step=100 electrons.zmin=0.e-6 warpx.serialize_ics=1
880+
runtime_params =
881881
dim = 3
882882
addToCompileString =
883883
restartTest = 0
@@ -911,7 +911,7 @@ analysisRoutine = Examples/analysis_default_regression.py
911911
[LaserAcceleration_single_precision_comms]
912912
buildDir = .
913913
inputFile = Examples/Physics_applications/laser_acceleration/inputs_3d
914-
runtime_params = warpx.do_dynamic_scheduling=0 amr.n_cell=32 32 256 max_step=100 electrons.zmin=0.e-6 warpx.serialize_ics=1 warpx.do_single_precision_comms=1
914+
runtime_params = warpx.do_single_precision_comms=1
915915
dim = 3
916916
addToCompileString =
917917
restartTest = 0

0 commit comments

Comments
 (0)