Ignore:
Timestamp:
Jul 2, 2013, 9:40:28 AM (11 years ago)
Author:
tnavarro
Message:

Possibility to store multiple initial states in one start/startfi. This is RETROCOMPATIBLE. New option ecrithist in run.def to write data in start/startfi every ecrithist dynamical timestep. New option timestart in run.def to initialize the GCM with the time timestart stored in start

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/soil_settings.F

    r38 r999  
    1       subroutine soil_settings(nid,ngrid,nsoil,tsurf,tsoil)
     1      subroutine soil_settings(nid,ngrid,nsoil,tsurf,tsoil,indextime)
    22
    33      use netcdf
     
    1212!                      r4 or r8 restarts independently of having compiled
    1313!                      the GCM in r4 or r8)
     14!                June 2013 TN : Possibility to read files with a time axis
     15!
    1416!
    1517!  This subroutine reads from a NetCDF file (opened by the caller)
     
    4244      integer nsoil     ! # of soil layers
    4345      real tsurf(ngrid) ! surface temperature
     46      integer indextime ! position on time axis
    4447!  output:
    4548      real tsoil(ngridmx,nsoilmx)       ! soil temperature
     
    5356      integer ndims     ! # of dimensions of read <inertiedat> data
    5457      integer ig,iloop  ! loop counters
     58     
     59      integer edges(3),corner(3) ! to read a specific time
    5560
    5661      logical :: olddepthdef=.false. ! flag
     
    298303        endif
    299304       else ! put values in tsoil
     305        corner(1)=1
     306        corner(2)=1
     307        corner(3)=indextime
     308        edges(1)=ngridmx
     309        edges(2)=nsoilmx
     310        edges(3)=1
     311        !ierr=nf90_get_var(nid,nvarid,tsoil,corner,edges)
    300312        ierr=nf90_get_var(nid,nvarid,tsoil)
    301313        if (ierr.ne.nf90_noerr) then
Note: See TracChangeset for help on using the changeset viewer.