/[MITgcm]/MITgcm/pkg/fizhi/fizhi_write_pickup.F
ViewVC logotype

Annotation of /MITgcm/pkg/fizhi/fizhi_write_pickup.F

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


Revision 1.10 - (hide annotations) (download)
Thu Aug 27 18:00:01 2009 UTC (14 years, 9 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.9: +20 -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.10 C $Header: /u/gcmpack/MITgcm/pkg/fizhi/fizhi_write_pickup.F,v 1.9 2004/10/14 22:11:42 molod Exp $
2 edhill 1.2 C $Name: $
3    
4 molod 1.4 #include "FIZHI_OPTIONS.h"
5 molod 1.1 CBOP
6 jmc 1.10 C !ROUTINE: FIZHI_WRITE_PICKUP
7 molod 1.1 C !INTERFACE:
8     SUBROUTINE FIZHI_WRITE_PICKUP( suff, myTime, myIter, myThid )
9    
10     C !DESCRIPTION: \bv
11     C *==========================================================*
12     C | S/R FIZHI_WRITE_PICKUP
13     C | o Writes current state of fizhi package to a pickup file
14     C *==========================================================*
15     C \ev
16    
17     C !USES:
18     CEOP
19     IMPLICIT NONE
20    
21     C == Global variables ===
22     #include "SIZE.h"
23     #include "fizhi_SIZE.h"
24 molod 1.3 #include "fizhi_land_SIZE.h"
25 molod 1.1 #include "fizhi_coms.h"
26 molod 1.3 #include "fizhi_land_coms.h"
27 molod 1.1 #include "EEPARAMS.h"
28     #include "PARAMS.h"
29    
30     C !INPUT/OUTPUT PARAMETERS:
31     C == Routine Arguments ==
32     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     CHARACTER*(*) suff
37     _RL myTime
38     INTEGER myIter
39     INTEGER myThid
40    
41     C !LOCAL VARIABLES:
42     C fn :: character buffer for creating filename
43     C prec :: precision of pickup files
44     C lgf :: flag to write "global" files
45 molod 1.6 INTEGER prec, iChara, lChar
46 molod 1.1 CHARACTER*(MAX_LEN_FNAM) fn
47     LOGICAL lgf
48 molod 1.5 _RL temp(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nrphys,Nsx,Nsy)
49     integer i,j,k,bi,bj
50 molod 1.1
51     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
52 molod 1.8 do bj = 1,myByLo(myThid), myByHi(myThid)
53     do bi = 1,myBxLo(myThid), myBxHi(myThid)
54 molod 1.5 do k = 1,Nrphys
55     do j = 1-OLy,sNy+OLy
56     do i = 1-OLx,sNx+OLx
57     temp(i,j,k,bi,bj) = 0.
58     enddo
59     enddo
60     enddo
61     enddo
62     enddo
63 molod 1.1
64     lChar = 0
65 molod 1.6 DO iChara = 1,len(suff)
66     IF ( suff(iChara:iChara) .NE. ' ') lChar=iChara
67 molod 1.1 ENDDO
68     WRITE(fn,'(A,A)') 'pickup_fizhi.',suff(1:lChar)
69     prec = precFloat64
70     lgf = globalFiles
71    
72     C-- Write fields as consecutive records
73 jmc 1.10 CALL WRITE_REC_3D_RL(fn,prec,Nrphys,uphy, 1,myIter,myThid)
74     CALL WRITE_REC_3D_RL(fn,prec,Nrphys,vphy, 2,myIter,myThid)
75     CALL WRITE_REC_3D_RL(fn,prec,Nrphys,thphy, 3,myIter,myThid)
76     CALL WRITE_REC_3D_RL(fn,prec,Nrphys,sphy, 4,myIter,myThid)
77    
78     CALL WRITE_REC_3D_RL(fn,prec,Nrphys,cldtot_lw, 5,myIter,myThid)
79     CALL WRITE_REC_3D_RL(fn,prec,Nrphys,cldras_lw, 6,myIter,myThid)
80     CALL WRITE_REC_3D_RL(fn,prec,Nrphys,cldlsp_lw, 7,myIter,myThid)
81     CALL WRITE_REC_3D_RL(fn,prec,Nrphys,lwlz, 8,myIter,myThid)
82     CALL WRITE_REC_3D_RL(fn,prec,Nrphys,cldtot_sw, 9,myIter,myThid)
83     CALL WRITE_REC_3D_RL(fn,prec,Nrphys,cldras_sw,10,myIter,myThid)
84     CALL WRITE_REC_3D_RL(fn,prec,Nrphys,cldlsp_sw,11,myIter,myThid)
85     CALL WRITE_REC_3D_RL(fn,prec,Nrphys,swlz, 12,myIter,myThid)
86     CALL WRITE_REC_3D_RL(fn,prec,Nrphys,qliqavelw,13,myIter,myThid)
87     CALL WRITE_REC_3D_RL(fn,prec,Nrphys,qliqavesw,14,myIter,myThid)
88     CALL WRITE_REC_3D_RL(fn,prec,Nrphys,fccavelw, 15,myIter,myThid)
89     CALL WRITE_REC_3D_RL(fn,prec,Nrphys,fccavesw, 16,myIter,myThid)
90 molod 1.5
91 molod 1.8 do bj = myByLo(myThid), myByHi(myThid)
92     do bi = myBxLo(myThid), myBxHi(myThid)
93 molod 1.7 do j = 1,sNy
94     do i = 1,sNx
95 molod 1.6 temp(i,j,1,bi,bj) = raincon(i,j,bi,bj)
96     temp(i,j,2,bi,bj) = rainlsp(i,j,bi,bj)
97     temp(i,j,3,bi,bj) = snowfall(i,j,bi,bj)
98     enddo
99     enddo
100 molod 1.9
101     temp(1,1,4,bi,bj) = float(iras(bi,bj))
102     temp(2,1,4,bi,bj) = float(nlwcld(bi,bj))
103     temp(3,1,4,bi,bj) = float(nlwlz(bi,bj))
104     temp(4,1,4,bi,bj) = float(nswcld(bi,bj))
105     temp(5,1,4,bi,bj) = float(nswlz(bi,bj))
106     temp(6,1,4,bi,bj) = float(imstturbsw(bi,bj))
107     temp(7,1,4,bi,bj) = float(imstturblw(bi,bj))
108    
109 molod 1.6 enddo
110     enddo
111    
112 jmc 1.10 CALL WRITE_REC_3D_RL(fn,prec,Nrphys,temp,17,myIter,myThid)
113 molod 1.1
114     RETURN
115     END

  ViewVC Help
Powered by ViewVC 1.1.22