1 |
C $Header: /u/gcmpack/MITgcm/pkg/longstep/longstep_init_varia.F,v 1.1 2009/06/26 23:10:10 jahn Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "LONGSTEP_OPTIONS.h" |
5 |
|
6 |
CBOP |
7 |
C !ROUTINE: LONGSTEP_INIT_VARIA |
8 |
C !INTERFACE: |
9 |
SUBROUTINE LONGSTEP_INIT_VARIA( myThid ) |
10 |
|
11 |
C !DESCRIPTION: \bv |
12 |
C *==========================================================* |
13 |
C | SUBROUTINE LONGSTEP_INIT_VARIA |
14 |
C | o Initialize LONGSTEP data structures |
15 |
C *==========================================================* |
16 |
C \ev |
17 |
|
18 |
C !USES: |
19 |
IMPLICIT NONE |
20 |
C == Global variables === |
21 |
#include "SIZE.h" |
22 |
#include "EEPARAMS.h" |
23 |
#include "PARAMS.h" |
24 |
#include "DYNVARS.h" |
25 |
#include "LONGSTEP.h" |
26 |
|
27 |
C !INPUT/OUTPUT PARAMETERS: |
28 |
C == Routine arguments == |
29 |
C myThid :: my Thread Id number |
30 |
INTEGER myThid |
31 |
|
32 |
#ifdef ALLOW_LONGSTEP |
33 |
C !LOCAL VARIABLES: |
34 |
C == Local variables == |
35 |
CEOP |
36 |
|
37 |
C Initialise LS_doTimeStep |
38 |
_BARRIER |
39 |
_BEGIN_MASTER(myThid) |
40 |
LS_doTimeStep = .FALSE. |
41 |
_END_MASTER(myThid) |
42 |
_BARRIER |
43 |
|
44 |
C initialize longstep averages to zero |
45 |
|
46 |
CALL LONGSTEP_RESET_3D(LS_uVelCount, LS_uVel, Nr, myThid) |
47 |
CALL LONGSTEP_RESET_3D(LS_vVelCount, LS_vVel, Nr, myThid) |
48 |
CALL LONGSTEP_RESET_3D(LS_wVelCount, LS_wVel, Nr, myThid) |
49 |
CALL LONGSTEP_RESET_3D(LS_thetaCount,LS_theta,Nr, myThid) |
50 |
CALL LONGSTEP_RESET_3D(LS_saltCount, LS_salt, Nr, myThid) |
51 |
IF ( ivdc_kappa .NE. 0. _d 0 ) |
52 |
& CALL LONGSTEP_RESET_3D(LS_IVDConvCountCount, |
53 |
& LS_IVDConvCount, Nr, myThid) |
54 |
#ifdef SHORTWAVE_HEATING |
55 |
CALL LONGSTEP_RESET_3D(LS_QswCount, LS_Qsw, 1, myThid) |
56 |
#endif |
57 |
#ifdef ALLOW_GMREDI |
58 |
IF ( useGMRedi ) THEN |
59 |
CALL LONGSTEP_RESET_3D(LS_KwxCount, LS_Kwx, Nr, myThid) |
60 |
CALL LONGSTEP_RESET_3D(LS_KwyCount, LS_Kwy, Nr, myThid) |
61 |
CALL LONGSTEP_RESET_3D(LS_KwzCount, LS_Kwz, Nr, myThid) |
62 |
ENDIF |
63 |
#endif |
64 |
#ifdef ALLOW_KPP |
65 |
IF ( useKPP ) THEN |
66 |
CALL LONGSTEP_RESET_3D(LS_KPPdiffKzSCount, |
67 |
& LS_KPPdiffKzS, Nr, myThid) |
68 |
CALL LONGSTEP_RESET_3D(LS_KPPghatCount, |
69 |
& LS_KPPghat, Nr, myThid) |
70 |
ENDIF |
71 |
#endif |
72 |
|
73 |
#endif /* ALLOW_LONGSTEP */ |
74 |
|
75 |
RETURN |
76 |
END |