diff options
Diffstat (limited to 'Examples/Tests/photon_pusher/check.py')
-rwxr-xr-x | Examples/Tests/photon_pusher/check.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Examples/Tests/photon_pusher/check.py b/Examples/Tests/photon_pusher/check.py index b1f6d916c..3e6873842 100755 --- a/Examples/Tests/photon_pusher/check.py +++ b/Examples/Tests/photon_pusher/check.py @@ -87,6 +87,11 @@ def check(): disc_mom = [np.linalg.norm(a-b)/np.linalg.norm(b) for a,b in zip(res_mom, answ_mom)] + print("max(disc_pos) = %s" %max(disc_pos)) + print("tol_pos = %s" %tol_pos) + print("max(disc_mom) = %s" %max(disc_mom)) + print("tol_mom = %s" %tol_mom) + assert ((max(disc_pos) <= tol_pos) and (max(disc_mom) <= tol_mom)) # This function generates the input file to test the photon pusher. |