/[MITgcm]/MITgcm/pkg/atm2d/atm2ocn_main.F
ViewVC logotype

Contents of /MITgcm/pkg/atm2d/atm2ocn_main.F

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


Revision 1.3 - (show annotations) (download)
Fri Apr 15 18:30:01 2011 UTC (13 years, 1 month ago) by jscott
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, 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, checkpoint62w, checkpoint62z, checkpoint62y, checkpoint62x, HEAD
Changes since 1.2: +2 -2 lines
no longer interpolate prescribed EmPmR forcing between months (to achieve exact FW balance)

1 C $Header: /u/gcmpack/MITgcm/pkg/atm2d/atm2ocn_main.F,v 1.2 2007/10/08 23:48:28 jmc Exp $
2 C $Name: $
3
4 #include "ctrparam.h"
5 #include "ATM2D_OPTIONS.h"
6 C !INTERFACE:
7 SUBROUTINE ATM2OCN_MAIN( iloop, aloop, inMonth,
8 & myIter, myThid )
9 C *==========================================================*
10 C | Main call after atmos call; calls routine to convert/get |
11 C | the atmos fluxes, do ther derivative term calculation, |
12 C | then add restoring and fixed fluxes, if any. |
13 C *==========================================================*
14 IMPLICIT NONE
15
16 C === Global Atmos/Ocean/Seaice Interface Variables ===
17 #include "ATMSIZE.h"
18 #include "SIZE.h"
19 #include "EEPARAMS.h"
20 #include "ATM2D_VARS.h"
21
22
23 C !INPUT/OUTPUT PARAMETERS:
24 C === Routine arguments ===
25 C iloop - loop counter for main loop (coupled periods)
26 C aloop - loop counter for atm time steps (within a coupled per.)
27 C inMonth - current month
28 C myThid - Thread no. that called this routine.
29 INTEGER iloop
30 INTEGER aloop
31 INTEGER inMonth
32 INTEGER myIter
33 INTEGER myThid
34
35 C LOCAL VARIABLES:
36 _RL wght0,wght1
37 INTEGER intime0,intime1
38 LOGICAL iftime ! comes back true if time to do a file re-load
39 _RL curTime ! current time (s) of simulation starting from 0.0
40
41 curTime = float(iloop-1)*dtcouplo + (float(aloop)-0.5)*dtatmo
42
43 PRINT *,'Executing atm2ocn main',curTime
44 CALL CALC_FILELOAD( curTime, iloop, aloop, wght0, wght1,
45 & intime0, intime1, ifTime, myThid)
46
47 CALL READ_ATMOS( inMonth,myThid)
48
49 IF ( (atmosTauuFile.NE.' ').OR.
50 & (atmosTauvFile.NE.' ').OR.(atmosWindFile.NE.' ')) THEN
51 CALL SUBTRACT_MEANS( wght0, wght1,
52 & intime0, intime1, myThid)
53 ENDIF
54
55 CALL CALC_1DTO2D( myThid)
56
57 CALL FIXED_FLUX_ADD( inMonth, wght0,wght1,
58 & intime0,intime1,ifTime,myIter,myThid)
59
60 CALL RELAX_ADD( wght0,wght1,
61 & intime0,intime1,ifTime,myIter,myThid)
62
63 RETURN
64 END

  ViewVC Help
Powered by ViewVC 1.1.22