Changeset 4046 for LMDZ6/trunk/libf/dyn3d
- Timestamp:
- Dec 15, 2021, 11:18:49 PM (3 years ago)
- Location:
- LMDZ6/trunk/libf/dyn3d
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/dyn3d/dynetat0.f90
r2859 r4046 10 10 NF90_CLOSE, NF90_GET_VAR 11 11 USE control_mod, ONLY: planet_type 12 USE strings_mod, ONLY: maxlen 12 13 USE assert_eq_m, ONLY: assert_eq 13 14 USE comvert_mod, ONLY: pa,preff … … 36 37 !=============================================================================== 37 38 ! Local variables: 38 CHARACTER(LEN= 256) :: msg, var, modname39 CHARACTER(LEN=maxlen) :: msg, var, modname 39 40 INTEGER, PARAMETER :: length=100 40 41 INTEGER :: iq, fID, vID, idecal!, iml, jml, lml, nqt … … 126 127 !--- Tracers 127 128 DO iq=1,nqtot 128 var= tname(iq)129 var=TRIM(tracers(iq)%name) 129 130 IF(NF90_INQ_VARID(fID,var,vID)==NF90_NoErr) THEN 130 131 CALL err(NF90_GET_VAR(fID,vID,q(:,:,:,iq)),"get",var); CYCLE … … 153 154 INTEGER, INTENT(IN) :: n1, n2 154 155 CHARACTER(LEN=*), INTENT(IN) :: str1, str2 155 CHARACTER(LEN= 100) :: s1, s2156 CHARACTER(LEN=maxlen) :: s1, s2 156 157 IF(n1/=n2) THEN 157 158 s1='value of '//TRIM(str1)//' =' -
LMDZ6/trunk/libf/dyn3d/dynredem.F90
r3865 r4046 12 12 NF90_64BIT_OFFSET 13 13 USE dynredem_mod, ONLY: cre_var, put_var1, put_var2, err, modname, fil 14 USE strings_mod, ONLY: maxlen 14 15 USE comvert_mod, ONLY: ap,bp,aps,bps,presnivs,pseudoalt,pa,preff, & 15 16 nivsig,nivsigs … … 38 39 REAL :: tab_cntrl(length) !--- RUN PARAMETERS TABLE 39 40 ! For NetCDF: 40 CHARACTER(LEN= 30) :: unites41 CHARACTER(LEN=maxlen) :: unites 41 42 INTEGER :: indexID 42 43 INTEGER :: rlonuID, rlonvID, rlatuID, rlatvID … … 145 146 CALL cre_var(nid,"teta" ,"Temperature",[rlonvID,rlatuID,sID,timID]) 146 147 DO iq=1,nqtot 147 CALL cre_var(nid,t name(iq),ttext(iq),[rlonvID,rlatuID,sID,timID])148 CALL cre_var(nid,tracers(iq)%name,tracers(iq)%longName,[rlonvID,rlatuID,sID,timID]) 148 149 END DO 149 150 CALL cre_var(nid,"masse","Masse d air" ,[rlonvID,rlatuID,sID,timID]) … … 196 197 INTEGER, PARAMETER :: length=100 197 198 REAL :: tab_cntrl(length) ! tableau des parametres du run 198 CHARACTER(LEN= 256) :: var, dum199 CHARACTER(LEN=maxlen) :: var, dum 199 200 LOGICAL :: lread_inca 200 201 !=============================================================================== … … 231 232 232 233 !--- Save tracers 233 DO iq=1,nqtot; var= tname(iq); ierr=-1234 DO iq=1,nqtot; var=TRIM(tracers(iq)%name); ierr=-1 234 235 IF(lread_inca) THEN !--- Possibly read from "start_trac.nc" 235 236 fil="start_trac.nc"
Note: See TracChangeset
for help on using the changeset viewer.