Changeset 3574 for trunk/LMDZ.MARS/libf
- Timestamp:
- Jan 13, 2025, 4:52:20 PM (5 months ago)
- Location:
- trunk/LMDZ.MARS/libf
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified 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 -
TabularUnified 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 "// -
TabularUnified trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F90 ¶
r3400 r3574 21 21 use mod_const_mpi, only: init_const_mpi 22 22 use parallel_lmdz, only: init_parallel 23 use version_info_mod, only: print_version_info 23 24 24 25 implicit none … … 77 78 real, dimension(:,:,:), allocatable :: q ! tracer mixing ratio (e.g. kg/kg) 78 79 real, dimension(1) :: wstar = 0. ! Thermals vertical velocity 80 character(100) :: arg ! To read command-line arguments 79 81 80 82 ! Physical and dynamical tendencies (e.g. m.s-2, K/s, Pa/s) … … 100 102 ! INITIALISATION 101 103 !======================================================================= 104 if (command_argument_count() > 0) then ! Get the number of command-line arguments 105 call get_command_argument(1,arg) ! Read the argument given to the program 106 select case (trim(adjustl(arg))) 107 case('version') 108 call print_version_info() 109 stop 110 case default 111 error stop 'The argument given to the program is unknown!' 112 end select 113 endif 114 102 115 #ifdef CPP_XIOS 103 116 call init_const_mpi
Note: See TracChangeset
for help on using the changeset viewer.