1 |
#include "ctrparam.h" |
2 |
#include "ATM2D_OPTIONS.h" |
3 |
|
4 |
C !INTERFACE: |
5 |
SUBROUTINE PASS_SEAICE_FLUXES( myThid ) |
6 |
C *==========================================================* |
7 |
C | Called after each atm time step - put Qneti, dF/dT, solar| |
8 |
c | for seaice to use, accumlate precip fluxes. | |
9 |
C *==========================================================* |
10 |
IMPLICIT NONE |
11 |
|
12 |
#include "ATMSIZE.h" |
13 |
#include "SIZE.h" |
14 |
#include "GRID.h" |
15 |
#include "EEPARAMS.h" |
16 |
|
17 |
C === Global SeaIce Variables === |
18 |
#include "THSICE_PARAMS.h" |
19 |
#include "THSICE_VARS.h" |
20 |
|
21 |
C === Atmos/Ocean/Seaice Interface Variables === |
22 |
#include "ATM2D_VARS.h" |
23 |
|
24 |
|
25 |
C !INPUT/OUTPUT PARAMETERS: |
26 |
C === Routine arguments === |
27 |
C myThid - Thread no. that called this routine. |
28 |
INTEGER myThid |
29 |
|
30 |
C LOCAL VARIABLES: |
31 |
INTEGER i,j |
32 |
|
33 |
DO j=1, sNy |
34 |
DO i=1, sNx |
35 |
|
36 |
icFlxAtm(i,j,1,1) = -qneti_2D(i,j) |
37 |
icFlxSw(i,j,1,1) = - solarinc_2D(i,j) !at this point, incident SW |
38 |
dFdT(i,j,1,1) = - dFdT_ice_2D(i,j) |
39 |
|
40 |
C Note converion to ice model sign convention below |
41 |
sum_prcIce(i,j) = sum_prcIce(i,j) - precipi_2D(i,j)*rhofw |
42 |
sum_evapIce(i,j) = sum_evapIce(i,j) - evapi_2D(i,j)*rhofw |
43 |
IF (Tair_2D(i,j) .LE. 0. _d 0) |
44 |
& sum_snowPrc(i,j) = sum_snowPrc(i,j) - precipi_2D(i,j)*rhofw |
45 |
|
46 |
C IF (iceMask(i,j,1,1) .GT. 0. _d 0) THEN |
47 |
C PRINT *,'Pass seaice fluxes at, T :',i,j,Tair_2D(i,j) |
48 |
C PRINT *,precipi_2D(i,j),sum_snowPrc(i,j) |
49 |
C ENDIF |
50 |
|
51 |
ENDDO |
52 |
ENDDO |
53 |
|
54 |
|
55 |
RETURN |
56 |
END |