Skip to content

Commit

Permalink
fix path for reduceddiags
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Mar 29, 2024
1 parent dc13a98 commit 660cd91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Examples/Tests/particle_thermal_boundary/analysis_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@

filename = sys.argv[1]

FE_rdiag = '/diags/reducedfiles/EF.txt'
FE_rdiag = './diags/reducedfiles/EF.txt'
init_Fenergy = np.loadtxt(FE_rdiag)[1,2]
final_Fenergy = np.loadtxt(FE_rdiag)[-1,2]
assert(final_Fenergy/init_Fenergy < 40)
assert(final_Fenergy < 5.e-5)

PE_rdiag = '/diags/reducedfiles/EN.txt'
PE_rdiag = './diags/reducedfiles/EN.txt'
init_Penergy = np.loadtxt(PE_rdiag)[0,2]
final_Penergy = np.loadtxt(PE_rdiag)[-1,2]
assert( abs(final_Penergy - init_Penergy)/init_Penergy < 0.02)

test_name = os.path.splot(os.getcwd())[1]
test_name = os.path.split(os.getcwd())[1]
checksumAPI.evaluate_checksum(test_name, filename)

0 comments on commit 660cd91

Please sign in to comment.