/[MITgcm]/MITgcm/pkg/aim_compon_interf/atm_store_saltfx.F
ViewVC logotype

Annotation of /MITgcm/pkg/aim_compon_interf/atm_store_saltfx.F

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


Revision 1.2 - (hide annotations) (download)
Thu May 16 20:56:59 2013 UTC (11 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
rename pkg/aim_compon_interf to pkg/atm_compon_interf (to be used with other
 atmospheric physics pkg) but by-pass CVS to get the new pkg so that
 we keep the history.

1 jmc 1.2 C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/atm_store_saltfx.F,v 1.1 2004/05/21 19:59:38 jmc Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "CPP_OPTIONS.h"
5    
6     CStartOfInterface
7     SUBROUTINE ATM_STORE_SALTFX( bi,bj,
8     I myTime,
9     I myIter,
10     I myThid )
11     C /==========================================================\
12     C | SUBROUTINE ATM_STORE_SALTFX |
13     C | o Routine for saving atmos. salt flux from sea-ice |
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 "FFIELDS.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     saltFxTime(bi,bj) = saltFxTime(bi,bj) + cplTimeFraction
52     DO j=1,sNy
53     DO i=1,sNx
54     iceSaltFlx(i,j,bi,bj) = iceSaltFlx(i,j,bi,bj)
55     & + saltFlux(i,j,bi,bj)*cplTimeFraction
56     ENDDO
57     ENDDO
58    
59     #endif /* COMPONENT_MODULE */
60    
61     RETURN
62     END

  ViewVC Help
Powered by ViewVC 1.1.22