Ignore:
Timestamp:
Jan 8, 2018, 11:40:54 PM (7 years ago)
Author:
jvatant
Message:

For more convenience values of upper chemistry
pressure grid "preskim" is stored in the startfi too.
--JVO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/dynphy_lonlat/phytitan/start2archive.F

    r1886 r1887  
    218218       CALL abort
    219219      ENDIF
     220
     221      ALLOCATE(preskim(nlaykim_up))
    220222     
    221       ! Allocate arrays of nlaykim_up size, only if they're present
     223      ! Allocate other arrays of nlaykim_up size, only if they're present
    222224      ! The test is on HCN but could be on any as we assume we can't do incomplete chemistry
    223225
     
    286288       IF (ierr .NE. NF_NOERR) THEN
    287289          PRINT*, "start2archive: Lecture echoue pour <controle>"
     290          CALL abort
     291       ENDIF
     292
     293! load upper chemistry pressure grid from physics start file
     294
     295      ierr = NF_INQ_VARID (nid1, "preskim", varid)
     296      IF (ierr .NE. NF_NOERR) THEN
     297       PRINT*, "start2archive: Le champ <preskim> est absent"
     298       CALL abort
     299      ENDIF
     300#ifdef NC_DOUBLE
     301       ierr = NF_GET_VAR_DOUBLE(nid1, varid, preskim)
     302#else
     303      ierr = NF_GET_VAR_REAL(nid1, varid, preskim)
     304#endif
     305       IF (ierr .NE. NF_NOERR) THEN
     306          PRINT*, "start2archive: Lecture echoue pour <preskim>"
    288307          CALL abort
    289308       ENDIF
Note: See TracChangeset for help on using the changeset viewer.