Ignore:
Timestamp:
Nov 28, 2025, 5:38:44 PM (2 days ago)
Author:
jbclement
Message:

PEM:
Renaming the file "info_PEM.txt" into "launchPEM.info".
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/info_PEM_mod.F90

    r3533 r3980  
    1313!=======================================================================
    1414!
    15 ! Purpose: Update the first line of "info_PEM.txt" to count the number of simulated Martian years
    16 !          Write in "info_PEM.txt" the reason why the PEM stopped and the number of simulated years
     15! 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
    1717!
    1818! Author: RV, JBC
     
    3434
    3535!----- Code
    36 inquire(file = 'info_PEM.txt',exist = ok)
     36inquire(file = 'launchPEM.info',exist = ok)
    3737if (ok) then
    3838    write(fch1,'(f'//int2str(nb_digits(i_myear) + 5)//'.4)') i_myear
    3939    write(fch2,'(f'//int2str(nb_digits(n_myear) + 5)//'.4)') n_myear
    4040    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)
    4242    if (cstat > 0) then
    4343        error stop 'info_PEM: command execution failed!'
     
    4545        error stop 'info_PEM: command execution not supported!'
    4646    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")
    4848    ! 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
    4949    ! The conversion ratio from Planetary years to Earth years is given in the header of the file
     
    5151    close(1)
    5252else
    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!'
    5454endif
    5555
Note: See TracChangeset for help on using the changeset viewer.