Changeset 3980 for trunk/LMDZ.COMMON/libf/evolution/info_PEM_mod.F90
- Timestamp:
- Nov 28, 2025, 5:38:44 PM (2 days ago)
- File:
-
- 1 edited
-
trunk/LMDZ.COMMON/libf/evolution/info_PEM_mod.F90 (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/info_PEM_mod.F90
r3533 r3980 13 13 !======================================================================= 14 14 ! 15 ! Purpose: Update the first line of " info_PEM.txt" to count the number of simulated Martian years16 ! Write in " info_PEM.txt" the reason why the PEM stopped and the number of simulated years15 ! Purpose: Update the first line of "launchPEM.info" to count the number of simulated Martian years 16 ! Write in "launchPEM.info" the reason why the PEM stopped and the number of simulated years 17 17 ! 18 18 ! Author: RV, JBC … … 34 34 35 35 !----- Code 36 inquire(file = ' info_PEM.txt',exist = ok)36 inquire(file = 'launchPEM.info',exist = ok) 37 37 if (ok) then 38 38 write(fch1,'(f'//int2str(nb_digits(i_myear) + 5)//'.4)') i_myear 39 39 write(fch2,'(f'//int2str(nb_digits(n_myear) + 5)//'.4)') n_myear 40 40 write(fch3,'(f6.4)') convert_years ! 4 digits to the right of the decimal point to respect the precision of Martian year in "launch_pem.sh" 41 call execute_command_line('sed -i "1s/.*/'//trim(fch1)//' '//trim(fch2)//' '//trim(fch3)//' '//int2str(iPCM)//' '//int2str(iPEM + 1)//' '//int2str(nPCM)//' '//int2str(nPCM_ini)//'/" info_PEM.txt',cmdstat = cstat)41 call execute_command_line('sed -i "1s/.*/'//trim(fch1)//' '//trim(fch2)//' '//trim(fch3)//' '//int2str(iPCM)//' '//int2str(iPEM + 1)//' '//int2str(nPCM)//' '//int2str(nPCM_ini)//'/" launchPEM.info',cmdstat = cstat) 42 42 if (cstat > 0) then 43 43 error stop 'info_PEM: command execution failed!' … … 45 45 error stop 'info_PEM: command execution not supported!' 46 46 endif 47 open(1,file = ' info_PEM.txt',status = "old",position = "append",action = "write")47 open(1,file = 'launchPEM.info',status = "old",position = "append",action = "write") 48 48 ! Martian date, Number of Martians years done by the PEM run, Number of Martians years done by the chainded simulation, Code of the stopping criterion 49 49 ! The conversion ratio from Planetary years to Earth years is given in the header of the file … … 51 51 close(1) 52 52 else 53 error stop 'The file '' info_PEM.txt'' does not exist and cannot be updated!'53 error stop 'The file ''launchPEM.info'' does not exist and cannot be updated!' 54 54 endif 55 55
Note: See TracChangeset
for help on using the changeset viewer.
