Changeset 3097 for trunk/LMDZ.COMMON/libf/evolution
- Timestamp:
- Oct 23, 2023, 6:42:21 PM (15 months ago)
- Location:
- trunk/LMDZ.COMMON/libf/evolution
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/changelog.txt
r3096 r3097 119 119 - the files in deftank have been updated consequently. 120 120 Following r3095, 'iniorbit' is now a subroutine of "planete_h.F90". 121 Correction of a bug from r3088: "diagfi.nc" was not changed into "diagpem.nc" in the commited version of "writediagpem.F90"! -
trunk/LMDZ.COMMON/libf/evolution/info_PEM_mod.F90
r3096 r3097 35 35 write(ich1,'(i0)') i_myear 36 36 write(ich2,'(i0)') n_myear 37 write(fch,'(f0.4)') convert_years ! 4 digits afetrto the right of the decimal point to respect the precision of Martian year in "launch_pem.sh"37 write(fch,'(f0.4)') convert_years ! 4 digits to the right of the decimal point to respect the precision of Martian year in "launch_pem.sh" 38 38 call execute_command_line('sed -i "1s/.*/'//trim(ich1)//' '//trim(ich2)//' '//trim(fch)//'/" info_PEM.txt',cmdstat = cstat) 39 39 if (cstat > 0) then -
trunk/LMDZ.COMMON/libf/evolution/writediagpem.F90
r3093 r3097 10 10 11 11 ! Ecriture de variables diagnostiques au choix dans la physique 12 ! dans un fichier NetCDF nomme 'diag fi'. Ces variables peuvent etre12 ! dans un fichier NetCDF nomme 'diagpem'. Ces variables peuvent etre 13 13 ! 3d (ex : temperature), 2d (ex : temperature de surface), ou 14 14 ! 0d (pour un scalaire qui ne depend que du temps : ex : la longitude … … 27 27 ! on ne leur a pas encore ajoute de la dissipation et de la physique !!! 28 28 ! IL est RECOMMANDE d'ajouter les tendance physique a ces variables 29 ! avant l'ecriture dans diag fi(cf. physiq.F)29 ! avant l'ecriture dans diagpem (cf. physiq.F) 30 30 ! 31 31 ! Modifs: Aug.2010 Ehouarn: enforce outputs to be real*4 … … 86 86 integer :: idim, varid 87 87 integer :: nid 88 character(*), parameter :: fichnom = "diag fi.nc"88 character(*), parameter :: fichnom = "diagpem.nc" 89 89 integer, dimension(4) :: id 90 90 integer, dimension(4) :: edges, corner 91 91 92 92 ! Added to use diagpem.def to select output variable 93 logical, save :: diag fi_def93 logical, save :: diagpem_def 94 94 logical :: getout 95 95 integer, save :: n_nom_def … … 98 98 character(120), dimension(n_nom_def_max), save :: nom_def 99 99 logical, save :: firstcall = .true. 100 !$OMP THREADPRIVATE(firstcall) !diag fi_def,n_nom_def,nom_def read in diagpem.def100 !$OMP THREADPRIVATE(firstcall) !diagpem_def,n_nom_def,nom_def read in diagpem.def 101 101 102 102 #ifdef CPP_PARA … … 133 133 134 134 if (ierr2 == 0) then 135 diag fi_def=.true.135 diagpem_def=.true. 136 136 write(*,*) "*******************" 137 137 write(*,*) "Reading diagpem.def" … … 139 139 do n=1,n_nom_def_max 140 140 read(99,fmt='(a)',end=88) nom_def(n) 141 write(*,*) 'Output in diag fi: ', trim(nom_def(n))141 write(*,*) 'Output in diagpem: ', trim(nom_def(n)) 142 142 enddo 143 143 88 continue … … 149 149 close(99) 150 150 else 151 diag fi_def=.false.151 diagpem_def=.false. 152 152 endif 153 153 !$OMP END MASTER … … 155 155 ENDIF ! of IF (firstcall) 156 156 157 ! Get out of write_diag fiif there is diagpem.def AND variable not listed158 ! ---------------------------------------------------------------------- 159 if (diag fi_def) then157 ! Get out of write_diagpem if there is diagpem.def AND variable not listed 158 ! ----------------------------------------------------------------------- 159 if (diagpem_def) then 160 160 getout=.true. 161 161 do n=1,n_nom_def … … 165 165 endif 166 166 167 ! Initialisation of 'firstnom' and create/open the "diag fi.nc" NetCDF file168 ! ------------------------------------------------------------------------ 167 ! Initialisation of 'firstnom' and create/open the "diagpem.nc" NetCDF file 168 ! ------------------------------------------------------------------------- 169 169 ! (at very first call to the subroutine, in accordance with diagpem.def) 170 170 if (firstnom.eq.'1234567890') then ! .true. for the very first valid … … 287 287 endif 288 288 289 write(6,*)'WRITEDIAG FI: date= ', date289 write(6,*)'WRITEDIAGPEM: date= ', date 290 290 endif ! of if (nom.eq.firstnom) 291 291 endif ! of if (is_master) … … 340 340 341 341 ! Create the variable if it doesn't exist yet 342 write (*,*) "========================== "343 write (*,*) "DIAG FI: creating variable ",trim(nom)342 write (*,*) "===========================" 343 write (*,*) "DIAGPEM: creating variable ",trim(nom) 344 344 call def_var(nid,nom,titre,unite,4,id,varid,ierr) 345 345 346 346 else 347 347 if (ntime==0) then 348 write(*,*) "DIAG FIError: failed creating variable ",trim(nom)348 write(*,*) "DIAGPEM Error: failed creating variable ",trim(nom) 349 349 write(*,*) "it seems it already exists!" 350 350 call abort_physic("writediagpem",trim(nom)//" already exists",1) … … 437 437 438 438 ! Create the variable if it doesn't exist yet 439 write (*,*) "========================== "440 write (*,*) "DIAG FI: creating variable ",trim(nom)439 write (*,*) "===========================" 440 write (*,*) "DIAGPEM: creating variable ",trim(nom) 441 441 442 442 call def_var(nid,nom,titre,unite,3,id,varid,ierr) … … 444 444 else 445 445 if (ntime==0) then 446 write(*,*) "DIAG FIError: failed creating variable ",trim(nom)446 write(*,*) "DIAGPEM Error: failed creating variable ",trim(nom) 447 447 write(*,*) "it seems it already exists!" 448 448 call abort_physic("writediagpem",trim(nom)//" already exists",1) … … 502 502 ! Create the variable if it doesn't exist yet 503 503 504 write (*,*) "========================== "505 write (*,*) "DIAG FI: creating variable ",trim(nom)504 write (*,*) "===========================" 505 write (*,*) "DIAGPEM: creating variable ",trim(nom) 506 506 507 507 call def_var(nid,nom,titre,unite,2,id,varid,ierr) … … 509 509 else 510 510 if (ntime==0) then 511 write(*,*) "DIAG FIError: failed creating variable ",trim(nom)511 write(*,*) "DIAGPEM Error: failed creating variable ",trim(nom) 512 512 write(*,*) "it seems it already exists!" 513 513 call abort_physic("writediagpem",trim(nom)//" already exists",1) … … 546 546 547 547 ! Create the variable if it doesn't exist yet 548 write (*,*) "========================== "549 write (*,*) "DIAG FI: creating variable ",trim(nom)548 write (*,*) "===========================" 549 write (*,*) "DIAGPEM: creating variable ",trim(nom) 550 550 call def_var(nid,nom,titre,unite,1,id,varid,ierr) 551 551 552 552 else 553 553 if (ntime==0) then 554 write(*,*) "DIAG FIError: failed creating variable ",trim(nom)554 write(*,*) "DIAGPEM Error: failed creating variable ",trim(nom) 555 555 write(*,*) "it seems it already exists!" 556 556 call abort_physic("writediagpem",trim(nom)//" already exists",1)
Note: See TracChangeset
for help on using the changeset viewer.