Changeset 3574 for trunk/LMDZ.GENERIC/libf
- Timestamp:
- Jan 13, 2025, 4:52:20 PM (2 weeks ago)
- Location:
- trunk/LMDZ.GENERIC/libf/phystd/dyn1d
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/dyn1d/kcm1d.F90
r3335 r3574 22 22 use dimphy, only : init_dimphy 23 23 use gases_h, only: ngasmx 24 use version_info_mod, only: print_version_info 24 25 25 26 implicit none … … 109 110 integer :: ios 110 111 integer :: k 112 113 character(100) :: arg ! To read command-line arguments 111 114 112 115 ! -------------- 113 116 ! Initialisation 114 117 ! -------------- 118 if (command_argument_count() > 0) then ! Get the number of command-line arguments 119 call get_command_argument(1,arg) ! Read the argument given to the program 120 select case (trim(adjustl(arg))) 121 case('version') 122 call print_version_info() 123 stop 124 case default 125 error stop 'The argument given to the program is unknown!' 126 end select 127 endif 115 128 116 129 pi=2.E+0*asin(1.E+0) -
trunk/LMDZ.GENERIC/libf/phystd/dyn1d/rcm1d.F
r3562 r3574 43 43 & nf90_strerror,NF90_INQ_VARID, NF90_GET_VAR, 44 44 & NF90_CLOSE 45 use version_info_mod, only: print_version_info 46 45 47 implicit none 46 48 … … 164 166 LOGICAL :: moderntracdef=.false. ! JVO, YJ : modern traceur.def 165 167 168 character(100) :: arg ! To read command-line arguments 169 166 170 c======================================================================= 167 171 c INITIALISATION 168 172 c======================================================================= 173 if (command_argument_count() > 0) then ! Get the number of command-line arguments 174 call get_command_argument(1,arg) ! Read the argument given to the program 175 select case (trim(adjustl(arg))) 176 case('version') 177 call print_version_info() 178 stop 179 case default 180 error stop 'The argument given to the program is ' 181 &//'unknown!' 182 end select 183 endif 184 169 185 ! check if 'rcm1d.def' file is around 170 186 open(90,file='rcm1d.def',status='old',form='formatted',
Note: See TracChangeset
for help on using the changeset viewer.