Skip to content

Commit

Permalink
Add a 'usage' statment to be printed out if the file name
Browse files Browse the repository at this point in the history
on the command line is missing.
  • Loading branch information
gmao-msienkie committed Nov 20, 2021
1 parent 7cbbf11 commit 232a390
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Applications/NCEP_Paqc/GMAOprev/check_virtmp.f
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@
CHARACTER(len=180) filn
CHARACTER(len=8) SUBSET
integer iret, idate, ilev, j, tvflg, lubfi
integer nargs, iargc
real vtcd

data lubfi /10/

nargs = iargc()
if (nargs .lt. 1) then
print *, 'Usage: check_virtmp.x prepbufr-file'
stop
end if
call getarg(1,filn)
open(unit=lubfi,file=filn,form='unformatted')

Expand Down

0 comments on commit 232a390

Please sign in to comment.