| 5 |
SUBROUTINE CALC_ZONAL_MEANS(doAll,myThid ) |
SUBROUTINE CALC_ZONAL_MEANS(doAll,myThid ) |
| 6 |
C *==========================================================* |
C *==========================================================* |
| 7 |
C | Calculate zonal mean ocean quantities (at a specific | |
C | Calculate zonal mean ocean quantities (at a specific | |
| 8 |
c | point in time) | |
C | point in time). If first argument is false, only seaice | |
| 9 |
|
C | means are calculated, i.e. called after an atm timestep. | |
| 10 |
C *==========================================================* |
C *==========================================================* |
| 11 |
IMPLICIT NONE |
IMPLICIT NONE |
| 12 |
|
|
| 13 |
C === Global Atmosphere Variables === |
C === Global Atmosphere Variables === |
| 14 |
#include "ATMSIZE.h" |
#include "ATMSIZE.h" |
| 15 |
#include "AGRID.COM" |
#include "AGRID.h" |
| 16 |
|
|
| 17 |
C === Global Ocean Variables === |
C === Global Ocean Variables === |
| 18 |
#include "SIZE.h" |
#include "SIZE.h" |
| 27 |
|
|
| 28 |
C !INPUT/OUTPUT PARAMETERS: |
C !INPUT/OUTPUT PARAMETERS: |
| 29 |
C === Routine arguments === |
C === Routine arguments === |
| 30 |
|
C doAll - boolean, false -> only vars changed after atm step |
| 31 |
C myThid - Thread no. that called this routine. |
C myThid - Thread no. that called this routine. |
| 32 |
LOGICAL doAll !if false, only vars changed after atm step |
LOGICAL doAll |
| 33 |
INTEGER myThid |
INTEGER myThid |
| 34 |
|
|
| 35 |
C LOCAL VARIABLES: |
C LOCAL VARIABLES: |
| 36 |
_RL mWgt |
_RL mWgt ! weight of ocean point j+1 |
| 37 |
INTEGER i,j,j_atm |
INTEGER i,j ! loop counters for the ocean grid |
| 38 |
|
INTEGER j_atm ! loop counter for the atm grid |
| 39 |
|
|
| 40 |
DO j_atm=1,jm0 |
DO j_atm=1,jm0 |
| 41 |
IF (doAll) THEN |
IF (doAll) THEN |
| 107 |
|
|
| 108 |
ENDIF |
ENDIF |
| 109 |
|
|
| 110 |
C At present, keeping separate variables in AGRID.COM and ATM2D_VARS.h |
C At present, keeping separate variables in AGRID.h and ATM2D_VARS.h |
| 111 |
|
|
| 112 |
IF (doALL) THEN |
IF (doALL) THEN |
| 113 |
mmsst(j_atm)= ctocn(j_atm) |
mmsst(j_atm)= ctocn(j_atm) |