Added Make install and fix to main

This commit is contained in:
Alex Selimov 2020-01-13 09:49:42 -05:00
parent 8fc91f4dd2
commit 1f1598dec9
2 changed files with 9 additions and 0 deletions

View file

@ -23,6 +23,7 @@ program main
!Call initialization functions
call lattice_init
call box_init
end_mode_arg = 0
! Command line parsing
arg_num = command_argument_count()
@ -36,6 +37,10 @@ program main
call call_mode(end_mode_arg, argument)
end if
!Check to make sure a mode was called
if (end_mode_arg=0) then
stop "Please run cacmb using an available mode"
end if
!Now we loop through all of the arguments and check for passed options or for a filename to be written out
arg_pos = end_mode_arg
do while(.true.)