Changeset 3093 for trunk/LMDZ.COMMON/libf/evolution
- Timestamp:
- Oct 18, 2023, 3:40:56 PM (14 months ago)
- Location:
- trunk/LMDZ.COMMON/libf/evolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/changelog.txt
r3088 r3093 108 108 - Gathering of all "diagpem.nc" outputs at the same place at the end of the main PEM loop; 109 109 - Update of "launch_pem.sh", "README" and "modify_startfi_orbit.sh" in the deftank. 110 111 == 18/10/2023 == JBC 112 The optional file to define the wanted outputs in "diagpem.nc" is now "diagpem.def" (instead of "diagfi.def") + Some updates in the files of deftank. -
trunk/LMDZ.COMMON/libf/evolution/writediagpem.F90
r3088 r3093 30 30 ! 31 31 ! Modifs: Aug.2010 Ehouarn: enforce outputs to be real*4 32 ! Oct 2011 Francois: enable having a 'diag fi.def' file to select32 ! Oct 2011 Francois: enable having a 'diagpem.def' file to select 33 33 ! at runtime, which variables to put in file 34 34 ! Oct 2023 JB: conversion into Fortran 90 with module for the PEM … … 90 90 integer, dimension(4) :: edges, corner 91 91 92 ! Added to use diag fi.def to select output variable92 ! Added to use diagpem.def to select output variable 93 93 logical, save :: diagfi_def 94 94 logical :: getout … … 98 98 character(120), dimension(n_nom_def_max), save :: nom_def 99 99 logical, save :: firstcall = .true. 100 !$OMP THREADPRIVATE(firstcall) !diagfi_def,n_nom_def,nom_def read in diag fi.def100 !$OMP THREADPRIVATE(firstcall) !diagfi_def,n_nom_def,nom_def read in diagpem.def 101 101 102 102 #ifdef CPP_PARA … … 123 123 124 124 !*************************************************************** 125 ! At very first call, check if there is a "diag fi.def" to use and read it126 ! ----------------------------------------------------------------------- 125 ! At very first call, check if there is a "diagpem.def" to use and read it 126 ! ------------------------------------------------------------------------ 127 127 IF (firstcall) THEN 128 128 firstcall=.false. 129 129 130 130 !$OMP MASTER 131 ! Open diag fi.def definition file if there is one:132 open(99,file="diag fi.def",status='old',form='formatted',iostat=ierr2)131 ! Open diagpem.def definition file if there is one: 132 open(99,file="diagpem.def",status='old',form='formatted',iostat=ierr2) 133 133 134 134 if (ierr2 == 0) then 135 135 diagfi_def=.true. 136 write(*,*) "****************** "137 write(*,*) "Reading diag fi.def"138 write(*,*) "****************** "136 write(*,*) "*******************" 137 write(*,*) "Reading diagpem.def" 138 write(*,*) "*******************" 139 139 do n=1,n_nom_def_max 140 140 read(99,fmt='(a)',end=88) nom_def(n) … … 155 155 ENDIF ! of IF (firstcall) 156 156 157 ! Get out of write_diagfi if there is diag fi.def AND variable not listed158 ! --------------------------------------------------------------------- 157 ! Get out of write_diagfi if there is diagpem.def AND variable not listed 158 ! ---------------------------------------------------------------------- 159 159 if (diagfi_def) then 160 160 getout=.true. … … 167 167 ! Initialisation of 'firstnom' and create/open the "diagfi.nc" NetCDF file 168 168 ! ------------------------------------------------------------------------ 169 ! (at very first call to the subroutine, in accordance with diag fi.def)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 171 171 ! call to this subroutine; now set 'firstnom'
Note: See TracChangeset
for help on using the changeset viewer.