1 |
jmc |
1.1 |
C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/atm_store_runoff.F,v 1.1 2003/12/15 02:44:48 jmc Exp $ |
2 |
|
|
C $Name: $ |
3 |
|
|
|
4 |
|
|
#include "CPP_OPTIONS.h" |
5 |
|
|
|
6 |
|
|
CStartOfInterface |
7 |
|
|
SUBROUTINE ATM_STORE_ATMSLP( bi,bj, |
8 |
|
|
I myTime, |
9 |
|
|
I myIter, |
10 |
|
|
I myThid ) |
11 |
|
|
C /==========================================================\ |
12 |
|
|
C | SUBROUTINE ATM_STORE_ATMSLP | |
13 |
|
|
C | o Routine for saving atmos. sea-level pressure | |
14 |
|
|
C | for export to coupling layer. | |
15 |
|
|
C |==========================================================| |
16 |
|
|
C | This version interfaces to the main model | |
17 |
|
|
C \==========================================================/ |
18 |
|
|
IMPLICIT NONE |
19 |
|
|
|
20 |
|
|
C == Global variables == |
21 |
|
|
#include "SIZE.h" |
22 |
|
|
|
23 |
|
|
#include "EEPARAMS.h" |
24 |
|
|
#include "PARAMS.h" |
25 |
|
|
#include "CPL_PARAMS.h" |
26 |
|
|
C == Global variables (main model) |
27 |
|
|
#include "DYNVARS.h" |
28 |
|
|
C == Global variables for coupling interface == |
29 |
|
|
#include "ATMCPL.h" |
30 |
|
|
|
31 |
|
|
C == Routine arguments == |
32 |
|
|
C bi,bj - Tile index |
33 |
|
|
C myThid - Thread number for this instance of the routine |
34 |
|
|
C myIter - Current timestep number |
35 |
|
|
C myTime - Current model time |
36 |
|
|
INTEGER bi, bj |
37 |
|
|
_RL myTime |
38 |
|
|
INTEGER myIter |
39 |
|
|
INTEGER myThid |
40 |
|
|
CEndOfInterface |
41 |
|
|
|
42 |
|
|
#ifdef COMPONENT_MODULE |
43 |
|
|
C == Local variables == |
44 |
|
|
C i,j - Loop counters |
45 |
|
|
INTEGER i,j |
46 |
|
|
_RL cplTimeFraction |
47 |
|
|
|
48 |
|
|
C o Accumulate SaltFlux from sea-ice that will be exported |
49 |
|
|
C to the coupling layer. saltflux is in psu.kg/m^2/s (+=upward) |
50 |
|
|
cplTimeFraction = 1. _d 0 / DFLOAT(cplSendFrq_iter) |
51 |
|
|
atmSLPrTime(bi,bj) = atmSLPrTime(bi,bj) + cplTimeFraction |
52 |
|
|
DO j=1,sNy |
53 |
|
|
DO i=1,sNx |
54 |
|
|
atmSLPr(i,j,bi,bj) = atmSLPr(i,j,bi,bj) |
55 |
|
|
& + etaN(i,j,bi,bj)*cplTimeFraction |
56 |
|
|
ENDDO |
57 |
|
|
ENDDO |
58 |
|
|
|
59 |
|
|
#endif /* COMPONENT_MODULE */ |
60 |
|
|
|
61 |
|
|
RETURN |
62 |
|
|
END |