Ignore:
Timestamp:
Oct 23, 2023, 6:42:21 PM (15 months ago)
Author:
jbclement
Message:

PEM:
Correction of a bug from r3088: "diagfi.nc" was not changed into "diagpem.nc" in the commited version of "writediagpem.F90"!
JBC

Location:
trunk/LMDZ.COMMON/libf/evolution
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/changelog.txt

    r3096 r3097  
    119119    - the files in deftank have been updated consequently.
    120120Following r3095, 'iniorbit' is now a subroutine of "planete_h.F90".
     121Correction 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  
    3535    write(ich1,'(i0)') i_myear
    3636    write(ich2,'(i0)') n_myear
    37     write(fch,'(f0.4)') convert_years ! 4 digits afetr to 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"
    3838    call execute_command_line('sed -i "1s/.*/'//trim(ich1)//' '//trim(ich2)//' '//trim(fch)//'/" info_PEM.txt',cmdstat = cstat)
    3939    if (cstat > 0) then
  • trunk/LMDZ.COMMON/libf/evolution/writediagpem.F90

    r3093 r3097  
    1010
    1111!  Ecriture de variables diagnostiques au choix dans la physique
    12 !  dans un fichier NetCDF nomme  'diagfi'. Ces variables peuvent etre
     12!  dans un fichier NetCDF nomme  'diagpem'. Ces variables peuvent etre
    1313!  3d (ex : temperature), 2d (ex : temperature de surface), ou
    1414!  0d (pour un scalaire qui ne depend que du temps : ex : la longitude
     
    2727! on ne leur a pas encore ajoute de la dissipation et de la physique !!!
    2828! IL est  RECOMMANDE d'ajouter les tendance physique a ces variables
    29 ! avant l'ecriture dans diagfi (cf. physiq.F)
     29! avant l'ecriture dans diagpem (cf. physiq.F)
    3030!
    3131! Modifs: Aug.2010 Ehouarn: enforce outputs to be real*4
     
    8686integer                 :: idim, varid
    8787integer                 :: nid
    88 character(*), parameter :: fichnom = "diagfi.nc"
     88character(*), parameter :: fichnom = "diagpem.nc"
    8989integer, dimension(4)   :: id
    9090integer, dimension(4)   :: edges, corner
    9191
    9292! Added to use diagpem.def to select output variable
    93 logical,                                  save :: diagfi_def
     93logical,                                  save :: diagpem_def
    9494logical                                        :: getout
    9595integer,                                  save :: n_nom_def
     
    9898character(120), dimension(n_nom_def_max), save :: nom_def
    9999logical,                                  save :: firstcall = .true.
    100 !$OMP THREADPRIVATE(firstcall) !diagfi_def,n_nom_def,nom_def read in diagpem.def
     100!$OMP THREADPRIVATE(firstcall) !diagpem_def,n_nom_def,nom_def read in diagpem.def
    101101
    102102#ifdef CPP_PARA
     
    133133
    134134        if (ierr2 == 0) then
    135             diagfi_def=.true.
     135            diagpem_def=.true.
    136136            write(*,*) "*******************"
    137137            write(*,*) "Reading diagpem.def"
     
    139139            do n=1,n_nom_def_max
    140140                read(99,fmt='(a)',end=88) nom_def(n)
    141                 write(*,*) 'Output in diagfi: ', trim(nom_def(n))
     141                write(*,*) 'Output in diagpem: ', trim(nom_def(n))
    142142            enddo
    143143 88         continue
     
    149149            close(99)
    150150        else
    151             diagfi_def=.false.
     151            diagpem_def=.false.
    152152        endif
    153153!$OMP END MASTER
     
    155155ENDIF ! of IF (firstcall)
    156156
    157 ! Get out of write_diagfi if there is diagpem.def AND variable not listed
    158 !  ----------------------------------------------------------------------
    159 if (diagfi_def) then
     157! Get out of write_diagpem if there is diagpem.def AND variable not listed
     158!  -----------------------------------------------------------------------
     159if (diagpem_def) then
    160160    getout=.true.
    161161    do n=1,n_nom_def
     
    165165endif
    166166
    167 ! Initialisation of 'firstnom' and create/open the "diagfi.nc" NetCDF file
    168 ! ------------------------------------------------------------------------
     167! Initialisation of 'firstnom' and create/open the "diagpem.nc" NetCDF file
     168! -------------------------------------------------------------------------
    169169! (at very first call to the subroutine, in accordance with diagpem.def)
    170170if (firstnom.eq.'1234567890') then ! .true. for the very first valid
     
    287287            endif
    288288
    289             write(6,*)'WRITEDIAGFI: date= ', date
     289            write(6,*)'WRITEDIAGPEM: date= ', date
    290290        endif ! of if (nom.eq.firstnom)
    291291    endif ! of if (is_master)
     
    340340
    341341! Create the variable if it doesn't exist yet
    342                 write (*,*) "=========================="
    343                 write (*,*) "DIAGFI: creating variable ",trim(nom)
     342                write (*,*) "==========================="
     343                write (*,*) "DIAGPEM: creating variable ",trim(nom)
    344344                call def_var(nid,nom,titre,unite,4,id,varid,ierr)
    345345
    346346            else
    347347                if (ntime==0) then
    348                     write(*,*) "DIAGFI Error: failed creating variable ",trim(nom)
     348                    write(*,*) "DIAGPEM Error: failed creating variable ",trim(nom)
    349349                    write(*,*) "it seems it already exists!"
    350350                    call abort_physic("writediagpem",trim(nom)//" already exists",1)
     
    437437
    438438! Create the variable if it doesn't exist yet
    439                 write (*,*) "=========================="
    440                 write (*,*) "DIAGFI: creating variable ",trim(nom)
     439                write (*,*) "==========================="
     440                write (*,*) "DIAGPEM: creating variable ",trim(nom)
    441441
    442442                call def_var(nid,nom,titre,unite,3,id,varid,ierr)
     
    444444            else
    445445                if (ntime==0) then
    446                     write(*,*) "DIAGFI Error: failed creating variable ",trim(nom)
     446                    write(*,*) "DIAGPEM Error: failed creating variable ",trim(nom)
    447447                    write(*,*) "it seems it already exists!"
    448448                    call abort_physic("writediagpem",trim(nom)//" already exists",1)
     
    502502! Create the variable if it doesn't exist yet
    503503
    504             write (*,*) "=========================="
    505             write (*,*) "DIAGFI: creating variable ",trim(nom)
     504            write (*,*) "==========================="
     505            write (*,*) "DIAGPEM: creating variable ",trim(nom)
    506506
    507507            call def_var(nid,nom,titre,unite,2,id,varid,ierr)
     
    509509        else
    510510            if (ntime==0) then
    511                 write(*,*) "DIAGFI Error: failed creating variable ",trim(nom)
     511                write(*,*) "DIAGPEM Error: failed creating variable ",trim(nom)
    512512                write(*,*) "it seems it already exists!"
    513513                call abort_physic("writediagpem",trim(nom)//" already exists",1)
     
    546546
    547547! Create the variable if it doesn't exist yet
    548                 write (*,*) "=========================="
    549                 write (*,*) "DIAGFI: creating variable ",trim(nom)
     548                write (*,*) "==========================="
     549                write (*,*) "DIAGPEM: creating variable ",trim(nom)
    550550                call def_var(nid,nom,titre,unite,1,id,varid,ierr)
    551551
    552552            else
    553553                if (ntime==0) then
    554                     write(*,*) "DIAGFI Error: failed creating variable ",trim(nom)
     554                    write(*,*) "DIAGPEM Error: failed creating variable ",trim(nom)
    555555                    write(*,*) "it seems it already exists!"
    556556                    call abort_physic("writediagpem",trim(nom)//" already exists",1)
Note: See TracChangeset for help on using the changeset viewer.