/[MITgcm]/MITgcm/pkg/thsice/thsice_read_pickup.F
ViewVC logotype

Annotation of /MITgcm/pkg/thsice/thsice_read_pickup.F

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


Revision 1.5 - (hide annotations) (download)
Fri Oct 19 03:22:25 2007 UTC (16 years, 6 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, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, 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, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59k, checkpoint59j, 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, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.4: +17 -13 lines
use pickupSuff (if defined) instead of nIter0

1 jmc 1.5 C $Header: /u/gcmpack/MITgcm/pkg/thsice/thsice_read_pickup.F,v 1.4 2007/01/04 15:41:31 mlosch Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "THSICE_OPTIONS.h"
5    
6     CBOP
7     C !ROUTINE: THSICE_READ_PICKUP
8     C !INTERFACE:
9     SUBROUTINE THSICE_READ_PICKUP( prec, myIter, myThid )
10    
11     C !DESCRIPTION: \bv
12     C *==========================================================*
13     C | S/R THSICE_READ_PICKUP
14     C | o Read thsice pickup file
15     C *==========================================================*
16     C \ev
17    
18     C !USES:
19     IMPLICIT NONE
20    
21     C === Global variables ===
22     #include "SIZE.h"
23     #include "EEPARAMS.h"
24     #include "PARAMS.h"
25     #include "THSICE_PARAMS.h"
26     #include "THSICE_VARS.h"
27    
28     C !INPUT/OUTPUT PARAMETERS:
29     C == Routine arguments ==
30     INTEGER prec
31     INTEGER myIter
32     INTEGER myThid
33     CEOP
34    
35     #ifdef ALLOW_THSICE
36    
37     C == Local variables ==
38     CHARACTER*(MAX_LEN_FNAM) fn
39 edhill 1.2
40     IF ( .NOT. thSIce_pickup_write_mnc ) THEN
41 jmc 1.1
42 jmc 1.5 IF (pickupSuff .EQ. ' ') THEN
43     WRITE(fn,'(A,I10.10)') 'pickup_ic.',myIter
44     ELSE
45     WRITE(fn,'(A,A10)') 'pickup_ic.',pickupSuff
46     ENDIF
47     CALL READ_REC_3D_RL( fn, prec, 1, iceMask, 1, myIter,myThid )
48     CALL READ_REC_3D_RL( fn, prec, 1, iceHeight,2, myIter,myThid )
49     CALL READ_REC_3D_RL( fn, prec, 1,snowHeight,3, myIter,myThid )
50     CALL READ_REC_3D_RL( fn, prec, 1, Tsrf, 4, myIter,myThid )
51     CALL READ_REC_3D_RL( fn, prec, 1, Tice1, 5, myIter,myThid )
52     CALL READ_REC_3D_RL( fn, prec, 1, Tice2, 6, myIter,myThid )
53     CALL READ_REC_3D_RL( fn, prec, 1, Qice1, 7, myIter,myThid )
54     CALL READ_REC_3D_RL( fn, prec, 1, Qice2, 8, myIter,myThid )
55     CALL READ_REC_3D_RL( fn, prec, 1, snowAge, 9, myIter,myThid )
56 jmc 1.1
57 edhill 1.2 IF ( stepFwd_oceMxL .AND. startIceModel.EQ.0 ) THEN
58 jmc 1.5 CALL READ_REC_3D_RL( fn,prec,1, tOceMxL, 10, myIter,myThid )
59     CALL READ_REC_3D_RL( fn,prec,1, sOceMxL, 11, myIter,myThid )
60 edhill 1.2 ENDIF
61    
62     ENDIF
63    
64     #ifdef ALLOW_MNC
65     IF ( thSIce_pickup_write_mnc ) THEN
66 edhill 1.3 WRITE(fn,'(A)') 'pickup_ic'
67 edhill 1.2 CALL MNC_FILE_CLOSE_ALL_MATCHING(fn, myThid)
68     CALL MNC_CW_SET_UDIM(fn, 1, myThid)
69 mlosch 1.4 CALL MNC_CW_SET_CITER(fn, 3, 3, myIter, 0, myThid)
70 edhill 1.2 CALL MNC_CW_RL_R('D',fn,0,0,'iceMask', iceMask, myThid)
71     CALL MNC_CW_RL_R('D',fn,0,0,'iceHeight', iceHeight, myThid)
72     CALL MNC_CW_RL_R('D',fn,0,0,'snowHeight',snowHeight,myThid)
73     CALL MNC_CW_RL_R('D',fn,0,0,'Tsrf', Tsrf, myThid)
74     CALL MNC_CW_RL_R('D',fn,0,0,'Tice1', Tice1, myThid)
75     CALL MNC_CW_RL_R('D',fn,0,0,'Tice2', Tice1, myThid)
76     CALL MNC_CW_RL_R('D',fn,0,0,'Qice1', Qice1, myThid)
77     CALL MNC_CW_RL_R('D',fn,0,0,'Qice2', Qice2, myThid)
78     CALL MNC_CW_RL_R('D',fn,0,0,'snowAge', snowAge, myThid)
79     IF ( stepFwd_oceMxL ) THEN
80     CALL MNC_CW_RL_R('D',fn,0,0,'tOceMxL',tOceMxL,myThid)
81     CALL MNC_CW_RL_R('D',fn,0,0,'sOceMxL',sOceMxL,myThid)
82     ENDIF
83     ENDIF
84     #endif /* ALLOW_MNC */
85 jmc 1.1
86     #endif /* ALLOW_THSICE */
87     RETURN
88     END

  ViewVC Help
Powered by ViewVC 1.1.22