clawpack / pyclaw

PyClaw is a Python-based interface to the algorithms of Clawpack and SharpClaw. It also contains the PetClaw package, which adds parallelism through PETSc.
http://www.clawpack.com/pyclaw
BSD 3-Clause "New" or "Revised" License
164 stars 99 forks source link

`test_sedov_and_hdf` fails because it cannot file or directory #703

Closed sanromd closed 1 year ago

sanromd commented 1 year ago

test_sedov_and_hdf.py fails because it cannot find the file or directory for the stored and computer solutions. The error stems from two issues:

  1. Line 21: typo in declaring verify_dir sets it to thisdir/./Sedov_regression instead of fthisdir/Sedov_regression, where thisdir is the location of the script file.
  2. Lines 25 and 31: Solution's method read defaults to file_prefix='fort'. However, the output from this test use the prefix claw.

Solution

  1. Modify line 31 to verify_dir = os.path.join(thisdir,'Sedov_regression').
  2. Modify read calls in lines 25 and 31 by adding file_prefix='claw'.