Ignore:
Timestamp:
Nov 21, 2017, 4:03:44 PM (7 years ago)
Author:
emillour
Message:

Common dynamics:

  • enable possiblity to store multiple time steps in the restart.nc file (flag "ecritstart" gives the frequency, in dynamical steps).
  • fixed dynredem_mod.F90 to correctly write multiple time steps.
  • fixed computation of JH_cur in the mars case where "hour_ini" contains the initial time of day read from the start.nc file
  • minor fix in dynetat0.F90

RY

Location:
trunk/LMDZ.COMMON/libf/dyn3d_common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dyn3d_common/dynetat0.F90

    r1508 r1824  
    307307    s1='value of '//TRIM(str1)//' ='
    308308    s2=' read in starting file differs from parametrized '//TRIM(str2)//' ='
    309     WRITE(msg,'(10x,a,i4,2x,a,i4)'),s1,n1,s2,n2
     309    WRITE(msg,'(10x,a,i4,2x,a,i4)')TRIM(s1),n1,TRIM(s2),n2
    310310    CALL ABORT_gcm(TRIM(modname),TRIM(msg),1)
    311311  END IF
  • trunk/LMDZ.COMMON/libf/dyn3d_common/dynredem_mod.F90

    r1508 r1824  
    3434  INTEGER :: start(4), count(4)
    3535!===============================================================================
    36   start(:)=[1,1,1,1]; count(:)=[iip1,jjp1,ll,nb]
     36  IF (ll.eq.1) THEN
     37    start(:)=[1,1,nb,1]
     38    count(:)=[iip1,jjp1,1,1]
     39  ELSE
     40    start(:)=[1,1,1,nb]
     41    count(:)=[iip1,jjp1,ll,1]
     42  ENDIF
    3743  CALL err(NF90_INQ_VARID(ncid,id,nvarid),"inq",id)
    3844  CALL err(NF90_PUT_VAR(ncid,nvarid,var,start,count),"put",id)
     
    6066  INTEGER :: start(4), count(4)
    6167!===============================================================================
    62   start(:)=[1,1,1,1]; count(:)=[iip1,jjm,ll,nb]
     68  IF (ll.eq.1) THEN
     69    start(:)=[1,1,nb,1]
     70    count(:)=[iip1,jjm,1,1]
     71  ELSE
     72    start(:)=[1,1,1,nb]
     73    count(:)=[iip1,jjm,ll,1]
     74  ENDIF
    6375  CALL err(NF90_INQ_VARID(ncid,id,nvarid),"inq",id)
    6476  CALL err(NF90_PUT_VAR(ncid,nvarid,var,start,count),"put",id)
Note: See TracChangeset for help on using the changeset viewer.