/[MITgcm]/MITgcm/pkg/land/land_write_pickup.F
ViewVC logotype

Annotation of /MITgcm/pkg/land/land_write_pickup.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (hide annotations) (download)
Thu Aug 27 18:00:01 2009 UTC (14 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint62, checkpoint63, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61v, checkpoint61w, checkpoint61z, checkpoint61x, checkpoint61y, HEAD
Changes since 1.5: +19 -32 lines
use type specific (RL or RS) S/R from rw pkg instead of calling old S/R
 MDSREADFIELD,MDSWRITEFIELD from mdsio pkg.

1 jmc 1.6 C $Header: /u/gcmpack/MITgcm/pkg/land/land_write_pickup.F,v 1.5 2007/11/05 15:40:24 jmc Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "LAND_OPTIONS.h"
5    
6     CBOP
7 jmc 1.5 C !ROUTINE: LAND_WRITE_PICKUP
8 jmc 1.1 C !INTERFACE:
9 edhill 1.3 SUBROUTINE LAND_WRITE_PICKUP( isperm, suff,
10 jmc 1.5 I myTime, myIter, myThid )
11 jmc 1.1
12     C !DESCRIPTION: \bv
13     C *==========================================================*
14     C | S/R LAND_WRITE_PICKUP
15     C | o Writes current state of land package to a pickup file
16     C *==========================================================*
17     C \ev
18    
19     C !USES:
20     IMPLICIT NONE
21    
22     C == Global variables ===
23     #include "LAND_SIZE.h"
24     #include "EEPARAMS.h"
25     #include "PARAMS.h"
26     #include "LAND_PARAMS.h"
27     #include "LAND_VARS.h"
28    
29     C !INPUT/OUTPUT PARAMETERS:
30     C == Routine Arguments ==
31 edhill 1.3 C isperm :: flag for permanent or rolling checkpoint
32 jmc 1.1 C suff :: suffix for pickup file (eg. ckptA or 0000000010)
33     C myTime :: current time
34     C myIter :: time-step number
35     C myThid :: Number of this instance
36 edhill 1.3 LOGICAL isperm
37 jmc 1.1 CHARACTER*(*) suff
38     _RL myTime
39     INTEGER myIter
40     INTEGER myThid
41    
42     #ifdef ALLOW_LAND
43    
44 jmc 1.6 C !FUNCTIONS:
45     INTEGER ILNBLNK
46     EXTERNAL ILNBLNK
47    
48 jmc 1.1 C !LOCAL VARIABLES:
49     C fn :: character buffer for creating filename
50     C prec :: precision of pickup files
51 jmc 1.2 c INTEGER prec, iChar, lChar, k
52     INTEGER prec, lChar, k
53 jmc 1.1 CHARACTER*(MAX_LEN_FNAM) fn
54     CEOP
55    
56     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
57    
58 jmc 1.2 lChar = ILNBLNK(suff)
59 edhill 1.3
60     IF ( land_pickup_write_mdsio ) THEN
61    
62     C-- Write fields as consecutive records
63 jmc 1.6 WRITE(fn,'(A,A)') 'pickup_land.',suff(1:lChar)
64     prec = precFloat64
65    
66     CALL WRITE_REC_3D_RL( fn, prec, land_nLev,
67     & land_enthalp, 1, myIter, myThid )
68     CALL WRITE_REC_3D_RL( fn, prec, land_nLev,
69     & land_groundW, 2, myIter, myThid )
70     k=2*land_nLev
71     CALL WRITE_REC_3D_RL( fn, prec, 1,
72     & land_skinT, k+1, myIter, myThid )
73     CALL WRITE_REC_3D_RL( fn, prec, 1,
74     & land_hSnow, k+2, myIter, myThid )
75     CALL WRITE_REC_3D_RL( fn, prec, 1,
76     & land_snowAge,k+3, myIter, myThid )
77 jmc 1.1
78 edhill 1.3 ENDIF
79    
80     #ifdef ALLOW_MNC
81     IF ( land_pickup_write_mnc ) THEN
82    
83     DO k = 1,MAX_LEN_FNAM
84     fn(k:k) = ' '
85     ENDDO
86     IF ( isperm ) THEN
87     WRITE(fn,'(A)') 'pickup_land'
88     ELSE
89     WRITE(fn,'(A,A)') 'pickup_land.',suff(1:lChar)
90     ENDIF
91     CALL MNC_FILE_CLOSE_ALL_MATCHING(fn, myThid)
92     CALL MNC_CW_SET_UDIM(fn, 1, myThid)
93     IF ( isperm ) THEN
94     CALL MNC_CW_SET_CITER(fn, 3, 3, myIter, 0, myThid)
95     ELSE
96     CALL MNC_CW_SET_CITER(fn, 2, -1, -1, -1, myThid)
97     ENDIF
98 edhill 1.4 CALL MNC_CW_SET_UDIM(fn, 1, myThid)
99 edhill 1.3
100     CALL MNC_CW_RL_W_S('D',fn,0,0,'T', myTime, myThid)
101     CALL MNC_CW_I_W_S('I',fn,0,0,'iter', myIter, myThid)
102    
103     CALL MNC_CW_RL_W('D',fn,0,0,
104     & 'land_enthalp', land_enthalp, myThid)
105     CALL MNC_CW_RL_W('D',fn,0,0,
106     & 'land_groundW', land_groundW, myThid)
107    
108     CALL MNC_CW_RL_W('D',fn,0,0,
109     & 'land_skinT', land_skinT, myThid)
110     CALL MNC_CW_RL_W('D',fn,0,0,
111     & 'land_hSnow', land_hSnow, myThid)
112     CALL MNC_CW_RL_W('D',fn,0,0,
113     & 'land_snAge', land_snowAge, myThid)
114    
115     ENDIF
116     #endif /* ALLOW_MNC */
117    
118 jmc 1.1 #endif /* ALLOW_LAND */
119    
120     RETURN
121     END

  ViewVC Help
Powered by ViewVC 1.1.22