/[MITgcm]/MITgcm/pkg/cd_code/cd_code_read_pickup.F
ViewVC logotype

Annotation of /MITgcm/pkg/cd_code/cd_code_read_pickup.F

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


Revision 1.3 - (hide annotations) (download)
Fri Aug 17 19:38:18 2007 UTC (16 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, 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, checkpoint59g, checkpoint59f, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, 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.2: +4 -5 lines
use the right EXCH for D-grid velocity

1 jmc 1.3 C $Header: /u/gcmpack/MITgcm/pkg/cd_code/cd_code_read_pickup.F,v 1.2 2006/10/26 00:24:40 jmc Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "CD_CODE_OPTIONS.h"
5    
6     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7     CBOP
8     C !ROUTINE: CD_CODE_READ_PICKUP
9    
10     C !INTERFACE:
11     SUBROUTINE CD_CODE_READ_PICKUP( myIter, myThid )
12    
13     C !DESCRIPTION:
14     C Read the checkpoint.
15    
16     C !USES:
17     IMPLICIT NONE
18     #include "SIZE.h"
19     #include "EEPARAMS.h"
20     #include "PARAMS.h"
21 jmc 1.2 #include "CD_CODE_VARS.h"
22 jmc 1.1 #ifdef ALLOW_MNC
23     #include "MNC_PARAMS.h"
24     #endif
25    
26     C !INPUT/OUTPUT PARAMETERS:
27     INTEGER myIter
28     INTEGER myThid
29     CEOP
30    
31     #ifdef ALLOW_CD_CODE
32    
33     C !LOCAL VARIABLES:
34     CHARACTER*(MAX_LEN_FNAM) fn
35     CHARACTER*(10) suff
36     INTEGER prec
37    
38     C Suffix for pickup files
39     IF (pickupSuff.EQ.' ') THEN
40     WRITE(suff,'(I10.10)') myIter
41     ELSE
42     WRITE(suff,'(A10)') pickupSuff
43     ENDIF
44 jmc 1.2 prec = precFloat64
45    
46 jmc 1.1 _BARRIER
47    
48     #ifdef ALLOW_MNC
49     IF (useMNC .AND. pickup_read_mnc) THEN
50     C Read variables from the pickup file
51     WRITE(fn,'(A)') 'pickup_cd'
52     CALL MNC_FILE_CLOSE_ALL_MATCHING(fn, myThid)
53     CALL MNC_CW_SET_UDIM(fn, 1, myThid)
54     CALL MNC_CW_SET_CITER(fn, 3, 3, myIter, 0, myThid)
55     CALL MNC_CW_SET_UDIM(fn, 1, myThid)
56     CALL MNC_CW_RL_R('D',fn,0,0,'uVelD',uVelD, myThid)
57     CALL MNC_CW_RL_R('D',fn,0,0,'vVelD',vVelD, myThid)
58     CALL MNC_CW_RL_R('D',fn,0,0,'Unm1',Unm1, myThid)
59     CALL MNC_CW_RL_R('D',fn,0,0,'Vnm1',Vnm1, myThid)
60     CALL MNC_CW_RL_R('D',fn,0,0,'etaNm1', etaNm1, myThid)
61     ENDIF
62     #endif /* ALLOW_MNC */
63    
64     WRITE(fn,'(A,A10)') 'pickup_cd.',suff
65    
66     IF (pickup_read_mdsio) THEN
67 jmc 1.2 CALL READ_REC_3D_RL( fn, prec, Nr, uVelD, 1, myIter, myThid )
68     CALL READ_REC_3D_RL( fn, prec, Nr, vVelD, 2, myIter, myThid )
69     CALL READ_REC_3D_RL( fn, prec, Nr, uNM1, 3, myIter, myThid )
70     CALL READ_REC_3D_RL( fn, prec, Nr, vNM1, 4, myIter, myThid )
71 jmc 1.1 IF ( usePickupBeforeC54 ) THEN
72 jmc 1.2 CALL READ_REC_3D_RL(fn,prec, 1, etaNm1,6*Nr+1,myIter,myThid)
73 jmc 1.1 ELSE
74 jmc 1.2 CALL READ_REC_3D_RL(fn,prec, 1, etaNm1,4*Nr+1,myIter,myThid)
75 jmc 1.1 ENDIF
76     ENDIF
77 jmc 1.2
78     C- thread synchronisation (barrier) is part of the EXCH S/R calls
79 jmc 1.3 CALL EXCH_UV_DGRID_3D_RL( uVelD,vVelD, .TRUE., Nr, myThid )
80     CALL EXCH_UV_XYZ_RL( uNM1,vNM1, .TRUE., myThid )
81     CALL EXCH_XY_RL( etaNm1, myThid )
82 jmc 1.2
83 jmc 1.1 #endif /* ALLOW_CD_CODE */
84    
85     RETURN
86     END

  ViewVC Help
Powered by ViewVC 1.1.22