Changeset 3509 for trunk/LMDZ.COMMON/libf/dyn3d_common/dynredem_mod.F90
- Timestamp:
- Nov 8, 2024, 4:59:55 PM (2 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/dyn3d_common/dynredem_mod.F90
r1824 r3509 4 4 NF90_REDEF, NF90_ENDDEF, NF90_PUT_VAR, & 5 5 NF90_PUT_ATT, NF90_GET_VAR, NF90_INQ_VARID, & 6 NF90_DEF_VAR 6 NF90_DEF_VAR, NF90_CHAR 7 7 PRIVATE 8 8 PUBLIC :: dynredem_write_u, dynredem_write_v, dynredem_read_u, err 9 PUBLIC :: cre_var, get_var1, put_var1, put_var2, fil, modname, msg9 PUBLIC :: cre_var, get_var1, put_var1, put_var2, put_char1, fil, modname, msg 10 10 include "dimensions.h" 11 11 include "paramet.h" … … 184 184 !=============================================================================== 185 185 ! 186 SUBROUTINE put_char1(ncid,var,title,did,v,units) 187 ! 188 !=============================================================================== 189 IMPLICIT NONE 190 !=============================================================================== 191 ! Arguments: 192 INTEGER, INTENT(IN) :: ncid 193 CHARACTER(LEN=*), INTENT(IN) :: var, title 194 INTEGER, INTENT(IN) :: did(2) 195 CHARACTER(*), INTENT(IN) :: v(:) 196 CHARACTER(LEN=*), OPTIONAL, INTENT(IN) :: units 197 !=============================================================================== 198 CALL err(NF90_DEF_VAR(ncid,var,NF90_CHAR,did,nvarid),"inq",var) 199 IF(title/="") CALL err(NF90_PUT_ATT(ncid,nvarid,"title",title),var) 200 IF(PRESENT(units)) CALL err(NF90_PUT_ATT(ncid,nvarid,"units",units),var) 201 CALL err(NF90_ENDDEF(ncid)) 202 CALL err(NF90_PUT_VAR(ncid,nvarid,v),"put",var) 203 CALL err(NF90_REDEF(ncid)) 204 205 END SUBROUTINE put_char1 206 ! 207 !=============================================================================== 208 209 210 !=============================================================================== 211 ! 186 212 FUNCTION msg(typ,nam) 187 213 !
Note: See TracChangeset
for help on using the changeset viewer.