Skip to content

Commit

Permalink
Update notes
Browse files Browse the repository at this point in the history
  • Loading branch information
josephzhang8 committed Dec 3, 2024
1 parent c2634f1 commit 2830160
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/getting-started/running-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ Some details for using scribed IO mode are following:
- Each 3D output has its own netcdf output (e.g. `salinity_*.nc`) and all 2D outputs share same output `out2d_*.nc`. Each vector output is split into X,Y components, e.g. `horizontalVel[X,Y]_*.nc`.
- The outputs `out2d_*.nc` and `zCoordinates_*.nc` are needed for VisIT.
- Users must specify # of scribes on cmd line as `mpirun -np NPROC ./pschism <nscribe>`. The specified number can be >= min required based on `param.nml` and explained above. If not you'll get an error. If you specify more than needed, you waste some cores but otherwise fine.

!!!caution "WWM"
When running with WWM, make sure to remove fort.* in the directory where hgrid.gr3 is; otherwise the code will try to read in fort.* which may result in NaN error. You can add this into your batch script.
8 changes: 4 additions & 4 deletions src/Utility/Post-Processing-Fortran/read_output10_xyz.f90
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
! (1) screen;
! (2) station.bp or station.sta
! (3) vgrid.in: in this dir or ../
! (4) out2d*.nc
! (4) nc outputs for that variable(tri-quad)
! (4) out2d*.nc (for forecast, assume hotstart occurs at end of 1st stack of each forecast)
! (5) nc outputs for that variable(tri-quad)

! Outputs: fort.1[89]; fort.21 (magnitude), fort.22 (dir in deg in math convention); fort.20 - local depth for each pt.
! For ics=2 (e.g. for lon/lat), use nearest node for output
Expand Down Expand Up @@ -87,10 +87,10 @@ program read_out
print*, 'Is this a hindcast (0) or forecast(1):'
read(*,*)iforecast
if(iforecast/=0) then
print*, 'Input start and end record # from each forecast:'
print*, 'Input start and end record # within each forecast:'
read(*,*)ifct_rec1,ifct_rec2
if(ifct_rec1>ifct_rec2) stop 'ifct_rec1>ifct_rec2'
print*, 'Input time offset (days) for output start time:'
print*, 'Input time offset (days) to be added to output start time:'
read(*,*)t_offset
endif

Expand Down

0 comments on commit 2830160

Please sign in to comment.