diff options
Diffstat (limited to 'Examples/Tests')
-rwxr-xr-x | Examples/Tests/galilean/analysis_2d.py | 4 | ||||
-rwxr-xr-x | Examples/Tests/galilean/analysis_3d.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Examples/Tests/galilean/analysis_2d.py b/Examples/Tests/galilean/analysis_2d.py index b1bc5d0a3..e2b0b0e23 100755 --- a/Examples/Tests/galilean/analysis_2d.py +++ b/Examples/Tests/galilean/analysis_2d.py @@ -26,10 +26,10 @@ Ez= ds.index.grids[0]['boxlib', 'Ez'].squeeze().v energyE_gal_psatd = np.sum(scc.epsilon_0/2*(Ex**2+Ey**2+Ez**2)) #E field energy precalculated with standard PSATD (v_galilean = (0,0,0)) -energyE_psatd = 30719.555920 +energyE_psatd = 38362.88743899688 error_rel = energyE_gal_psatd / energyE_psatd -tolerance_rel = 1e-7 +tolerance_rel = 1e-8 print("error_rel : " + str(error_rel)) print("tolerance_rel: " + str(tolerance_rel)) diff --git a/Examples/Tests/galilean/analysis_3d.py b/Examples/Tests/galilean/analysis_3d.py index 7a08beaac..8af25214d 100755 --- a/Examples/Tests/galilean/analysis_3d.py +++ b/Examples/Tests/galilean/analysis_3d.py @@ -26,10 +26,10 @@ Ez= ds.index.grids[0]['boxlib', 'Ez'].squeeze().v energyE_gal_psatd = np.sum(scc.epsilon_0/2*(Ex**2+Ey**2+Ez**2)) #E field energy precalculated with standard PSATD (v_galilean = (0,0,0)) -energyE_psatd = 154618.93650990006 +energyE_psatd = 8218.678808709019 error_rel = energyE_gal_psatd / energyE_psatd -tolerance_rel = 1e-7 +tolerance_rel = 1e-6 print("error_rel : " + str(error_rel)) print("tolerance_rel: " + str(tolerance_rel)) |