Changeset 5448 for LMDZ6/trunk


Ignore:
Timestamp:
Dec 23, 2024, 3:53:41 AM (23 hours ago)
Author:
fhourdin
Message:

For replay

Location:
LMDZ6/trunk/libf/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/iotd_ecrit.f90

    r5390 r5448  
    123123!Case of a 3D variable
    124124!---------------------
    125         if (llm==lmax) then
     125       if (llm==lmax) then
    126126           ndim=4
    127127           corner(1)=1
     
    134134           edges(4)=1
    135135           dim_cc=dim_coord
    136 
    137136
    138137!Case of a 2D variable
     
    159158      if (ntime==1) then
    160159          ierr = nf90_redef (nid)
    161           ierr = nf90_def_var(nid,nom,nf90_float,dim_cc,varid)
     160          ierr = nf90_def_var(nid,nom,nf90_float,dim_cc(1:ndim),varid)
    162161          !print*,'DEF ',nom,nid,varid
    163162          ierr = nf90_enddef(nid)
  • LMDZ6/trunk/libf/phylmd/iotd_ini.f90

    r5390 r5448  
    124124      ierr=nf90_def_var(nid, "lev", nf90_float, dim_coord(3),nvarid)
    125125      ierr=nf90_put_att(nid,nvarid,"long_name","vert level")
    126       if ( coordv(2)>coordv(1) ) then
     126
     127      if ( coordv(min(2,llm))>=coordv(1) ) then
    127128         ierr=nf90_put_att(nid,nvarid,"long_name","pseudo-alt")
    128129         ierr=nf90_put_att(nid,nvarid,'positive',"up")
Note: See TracChangeset for help on using the changeset viewer.