/[MITgcm]/MITgcm/pkg/ocn_compon_interf/cpl_write_pickup.F
ViewVC logotype

Annotation of /MITgcm/pkg/ocn_compon_interf/cpl_write_pickup.F

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


Revision 1.3 - (hide annotations) (download)
Thu May 10 21:15:52 2007 UTC (17 years, 1 month ago) by jscott
Branch: MAIN
CVS Tags: checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59c, checkpoint59b, checkpoint59h
Changes since 1.2: +26 -5 lines
permit exchange of carbon variables between coupler <-> ocean

1 jscott 1.3 C $Header: /u/gcmpack/MITgcm/pkg/ocn_compon_interf/cpl_write_pickup.F,v 1.2 2004/05/21 19:42:26 jmc Exp $
2 jmc 1.2 C $Name: $
3 jmc 1.1
4     #include "CPP_OPTIONS.h"
5    
6     CStartOfInterface
7     SUBROUTINE CPL_WRITE_PICKUP(
8     & prec, lgf, permCheckPoint, myIter, myThid)
9     C /==========================================================\
10     C | SUBROUTINE CPL_WRITE_PICKUP |
11     C | o Store coupling state for restart. |
12     C | - Oceanic version - |
13     C |==========================================================|
14     C | Presently, the atmospheric compon. is in charge of the |
15     C | writing of coupling fields ; nothing done here for now. |
16     C \==========================================================/
17     IMPLICIT NONE
18    
19     C == Global variables ==
20     #include "SIZE.h"
21     #include "EEPARAMS.h"
22     #include "PARAMS.h"
23 jscott 1.3 #include "OCNIDS.h"
24 jmc 1.1 #include "OCNCPL.h"
25    
26     C == Routine arguments ==
27     C myThid - Thread number for this instance of the routine.
28     C myIter - Timestep number.
29     C permCheckpoint - Controls whether timestamped or rolling checkpoint.
30     C lgf - Controls whether global files are used.
31 jscott 1.3 C caroffset - offset in pickup file if carbon variables included
32 jmc 1.1 INTEGER myIter
33     INTEGER myThid
34     LOGICAL permCheckPoint
35     INTEGER prec
36     LOGICAL lgf
37 jscott 1.3 INTEGER caroffset
38 jmc 1.1 CEndOfInterface
39    
40     C == Local variables ==
41     C fn - Workspace for building file name
42     CHARACTER*(MAX_LEN_FNAM) fn
43    
44 jscott 1.3 caroffset=0
45 jmc 1.1 IF ( permCheckPoint ) THEN
46     WRITE(fn,'(A,I10.10)') 'pickup_cpl.',myIter
47     ELSE
48     WRITE(fn,'(A,A)') 'pickup_cpl.',checkPtSuff(nCheckLev)
49     ENDIF
50 jmc 1.2 CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,atmSLPr , 1,myIter,myThid)
51     CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,HeatFlux , 2,myIter,myThid)
52     CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,qShortWave, 3,myIter,myThid)
53     c CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,qLatent , 3,myIter,myThid)
54     c CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,qSensible , 3,myIter,myThid)
55     c CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,qLongWave , 3,myIter,myThid)
56     c CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,uVelGround, 3,myIter,myThid)
57     c CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,vVelGround, 3,myIter,myThid)
58     CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,tauX , 4,myIter,myThid)
59     CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,tauY , 5,myIter,myThid)
60     CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,FWFlux , 6,myIter,myThid)
61     CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,iceSaltFlx, 7,myIter,myThid)
62     CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,seaIceMass, 8,myIter,myThid)
63    
64 jscott 1.3 IF ( ocnCpl_exchange_DIC ) THEN
65     CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,
66     & airCO2 , 9,myIter,myThid)
67     CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,
68     & surfWSpeed, 10,myIter,myThid)
69     CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,
70     & fracIce , 11,myIter,myThid)
71     CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,
72     & fluxCO2cpl, 12,myIter,myThid)
73     caroffset=4
74     ENDIF
75    
76     CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,ocMxlD2cpl,
77     & 9+caroffset, myIter,myThid)
78     CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,SSTocn2cpl,
79     & 10+caroffset,myIter,myThid)
80     CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,SSSocn2cpl,
81     & 11+caroffset,myIter,myThid)
82     CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,vSqocn2cpl,
83     & 12+caroffset,myIter,myThid)
84    
85 jmc 1.1
86     RETURN
87     END

  ViewVC Help
Powered by ViewVC 1.1.22