Skip to content

Commit

Permalink
update some of the CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roelof-groenewald committed Dec 1, 2023
1 parent dc5526c commit faca887
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 37 deletions.
4 changes: 2 additions & 2 deletions Examples/Tests/ohm_solver_ion_Landau_damping/PICMI_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class IonLandauDamping(object):
# Plasma resistivity - used to dampen the mode excitation
eta = 1e-7
# Number of substeps used to update B
substeps = 100
substeps = 10


def __init__(self, test, dim, m, T_ratio, verbose):
Expand All @@ -83,7 +83,7 @@ def __init__(self, test, dim, m, T_ratio, verbose):
self.total_steps = int(np.ceil(self.LT / self.DT))
# if this is a test case run for only 100 steps
if self.test:
self.total_steps = 100
self.total_steps = 150

self.dt = self.DT / self.w_ci # self.DT * self.t_ci

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class HybridPICBeamInstability(object):
# Plasma resistivity - used to dampen the mode excitation
eta = 1e-7
# Number of substeps used to update B
substeps = 400
substeps = 20

# Beam parameters
n_beam = [0.02, 0.1]
Expand Down Expand Up @@ -98,8 +98,7 @@ def __init__(self, test, dim, resonant, verbose):
# if this is a test case run for only 25 cyclotron periods and use
# fewer substeps to speed up the simulation
if self.test:
self.LT = 25.0
self.substeps = 100
self.LT = 35.0

self.total_steps = int(np.ceil(self.LT / self.DT))

Expand Down
10 changes: 5 additions & 5 deletions Examples/Tests/ohm_solver_ion_beam_instability/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@
# assert's fail, the full benchmark should be rerun (same as the test but
# without the `--test` argument) and the growth rates (up to saturation)
# compared to the theoretical ones to determine if the physics test passes.
# At creation, the full test had the following errors when ran on 8 procs:
# m4_rms_error = 4.476; m5_rms_error = 9.211; m6_rms_error = 3.252
assert m4_rms_error < 1.55
assert m5_rms_error < 0.75
assert m6_rms_error < 0.40
# At creation, the full test (3d) had the following errors when ran on 1 V100:
# m4_rms_error = 3.329; m5_rms_error = 1.052; m6_rms_error = 2.583
assert m4_rms_error < 1.5
assert m5_rms_error < 0.4
assert m6_rms_error < 1.25

# checksum check
import os
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"lev=0": {
"Bx": 5.334191428317849,
"By": 5.304367780440314,
"Bx": 27.864884714606287,
"By": 27.512065552904964,
"Bz": 256.0,
"Ex": 4.023743699806469e+05,
"Ey": 3.989324532762268e+05,
"Ez": 2.281344128344855e+04,
"jx": 1.525180463636894e+11,
"jy": 1.541352360760910e+11,
"jz": 3.182915979017075e+10
"Ex": 1814830.0899118558,
"Ey": 1807490.954696831,
"Ez": 481172.9611816857,
"jx": 686892027617.7311,
"jy": 688159642665.3784,
"jz": 100142185494.34584
},
"beam_ions": {
"particle_momentum_x": 1.267740609380299e-18,
"particle_momentum_y": 1.274270632846882e-18,
"particle_momentum_z": 1.391082122553233e-17,
"particle_position_x": 4.598149111137194e+03,
"particle_momentum_x": 4.457531098465277e-18,
"particle_momentum_y": 4.473403768918693e-18,
"particle_momentum_z": 1.0898804348671991e-17,
"particle_position_x": 4771.045393185418,
"particle_weight": 2.1101256751388695e+20
},
"ions": {
"particle_momentum_x": 1.619717848597040e-18,
"particle_momentum_y": 1.619530182887040e-18,
"particle_momentum_z": 1.673190364768869e-18,
"particle_position_x": 9.193260427295945e+03,
"particle_momentum_x": 1.7363382576743058e-18,
"particle_momentum_y": 1.7349619341342414e-18,
"particle_momentum_z": 1.6420833334404384e-18,
"particle_position_x": 9199.410918598116,
"particle_weight": 1.0550628375694317e+22
}
}
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"lev=0": {
"Bx": 0.0,
"By": 7.079680412579356e-06,
"By": 9.85331786235039e-06,
"Bz": 0.0,
"Ex": 2726044.053666623,
"Ex": 2477786.0791638982,
"Ey": 0.0,
"Ez": 4060168.641409589,
"jx": 177543428.8941277,
"jy": 187432087.03814715,
"jz": 594259755.4658134
"Ez": 4017759.2140356353,
"jx": 170946239.13826403,
"jy": 163716416.89360982,
"jz": 848613192.8323679
},
"ions": {
"particle_momentum_x": 9.141594694084731e-17,
"particle_momentum_y": 9.135546407258978e-17,
"particle_momentum_z": 9.137866220861256e-17,
"particle_position_x": 1197.3344862524336,
"particle_position_y": 153269.17690371818,
"particle_momentum_x": 9.137211831335653e-17,
"particle_momentum_y": 9.137639968843743e-17,
"particle_momentum_z": 9.135355423932005e-17,
"particle_position_x": 1197.4950421919652,
"particle_position_y": 153274.8576288179,
"particle_weight": 8.032598963696067e+16
}
}

0 comments on commit faca887

Please sign in to comment.