1 |
#include "ctrparam.h" |
2 |
#include "ATM2D_OPTIONS.h" |
3 |
|
4 |
C !INTERFACE: |
5 |
SUBROUTINE SUM_SEAICE_OUT( myThid ) |
6 |
C *==========================================================* |
7 |
C | Sum output from temp seaice step for passing to ocean. | |
8 |
C *==========================================================* |
9 |
IMPLICIT NONE |
10 |
|
11 |
#include "ATMSIZE.h" |
12 |
#include "SIZE.h" |
13 |
#include "GRID.h" |
14 |
#include "EEPARAMS.h" |
15 |
|
16 |
C === Global SeaIce Variables === |
17 |
#include "THSICE_VARS.h" |
18 |
|
19 |
C === Atmos/Ocean/Seaice Interface Variables === |
20 |
#include "ATM2D_VARS.h" |
21 |
|
22 |
|
23 |
C !INPUT/OUTPUT PARAMETERS: |
24 |
C === Routine arguments === |
25 |
C myThid - Thread no. that called this routine. |
26 |
INTEGER myThid |
27 |
|
28 |
C LOCAL VARIABLES: |
29 |
INTEGER i,j |
30 |
|
31 |
DO j=1, sNy |
32 |
DO i=1,sNx |
33 |
|
34 |
IF (iceMask(i,j,1,1) .NE. 0. _d 0) THEN |
35 |
sum_sHeat(i,j) = sum_sHeat(i,j) + sHeating(i,j,1,1) |
36 |
sum_flxCnB(i,j)= sum_flxCnB(i,j) + flxCndBt(i,j,1,1) |
37 |
|
38 |
C Add contribution of SW passing through ice |
39 |
C note sign convention of sum_solarnet is +=up, opposite of ice model |
40 |
sum_solarnet(i,j)= sum_solarnet(i,j) |
41 |
& - icFlxSW(i,j,1,1)*iceMask(i,j,1,1) |
42 |
ENDIF |
43 |
|
44 |
ENDDO |
45 |
ENDDO |
46 |
|
47 |
|
48 |
RETURN |
49 |
END |