aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2021-08-04 15:14:13 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2021-08-04 15:14:13 -0400
commitc396a4bc7a3282de9d2191de0e1076fec9df0783 (patch)
tree55789a842a6867b98bc9d533b3e997e1c925f79a
parentcad002c371dd712ae91de9544f0307ade9d63518 (diff)
downloadmoog-c396a4bc7a3282de9d2191de0e1076fec9df0783.tar.gz
Fall through on non-argument
-rwxr-xr-xBegin.f10
1 files changed, 6 insertions, 4 deletions
diff --git a/Begin.f b/Begin.f
index b45c623..cd2e021 100755
--- a/Begin.f
+++ b/Begin.f
@@ -126,10 +126,12 @@ c write a header and find the appropriate parameter file, and exit normally
endif
endif
- inquire(FILE=fparam, EXIST=fexist)
- if (.NOT. fexist) then
- write(0,*) "Input file does not exist"
- call exit(1)
+ if (fparam /= 'no_filename_given') then
+ inquire(FILE=fparam, EXIST=fexist)
+ if (.NOT. fexist) then
+ write(0,*) "Input file does not exist"
+ call exit(1)
+ endif
endif
call infile ('input ',nfparam,'formatted ',0,nchars,