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 |