Changeset 3574 for trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars
- Timestamp:
- Jan 13, 2025, 4:52:20 PM (2 weeks ago)
- Location:
- trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/newstart.F
r3336 r3574 61 61 & ini_paleoclimate_h, end_paleoclimate_h 62 62 use subslope_mola_mod, ONLY: subslope_mola 63 use version_info_mod, only: print_version_info 63 64 64 65 implicit none … … 81 82 c et autres: 82 83 c---------- 84 character(100) :: arg ! To read command-line arguments 83 85 84 86 c Variables pour les lectures NetCDF des fichiers "start_archive" … … 211 213 212 214 215 216 if (command_argument_count() > 0) then ! Get the number of command-line arguments 217 call get_command_argument(1,arg) ! Read the argument given to the program 218 select case (trim(adjustl(arg))) 219 case('version') 220 call print_version_info() 221 stop 222 case default 223 error stop 'The argument given to the program is unknown!' 224 end select 225 endif 213 226 214 227 c sortie visu pour les champs dynamiques -
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/start2archive.F
r3491 r3574 41 41 USE surfdat_h, ONLY: phisfi, albedodat, z0, z0_default, 42 42 & zmea, zstd, zsig, zgam, zthe, hmons, summit, base 43 use version_info_mod, only: print_version_info 44 43 45 implicit none 44 46 … … 141 143 integer :: nq,numvanle 142 144 character(len=30) :: txt ! to store some text 145 character(100) :: arg ! To read command-line arguments 143 146 144 147 c Netcdf … … 150 153 C here we assume and check that if there is an argument #1 then 151 154 C it should be --add-sso to signal adding SSO fileds to start_archive.nc 152 153 155 CALL get_command_argument(1,txt,j,ierr) 154 156 ! will return ierr==0 if there is an argument #1 to command line … … 158 160 add_sso_fields=.true. 159 161 write(*,*) "SSO fields will be included in start_archive" 162 ELSE IF (trim(txt) == 'version') then 163 call print_version_info() 164 stop 160 165 ELSE 161 166 write(*,*) "start2archive error: unexpected command line "//
Note: See TracChangeset
for help on using the changeset viewer.