1 |
|
2 |
#include "CPP_OPTIONS.h" |
3 |
|
4 |
CBOP |
5 |
C !ROUTINE: INI_AUTODIFF |
6 |
C !INTERFACE: |
7 |
SUBROUTINE INI_AUTODIFF( myThid ) |
8 |
C !DESCRIPTION: \bv |
9 |
C *==========================================================* |
10 |
C | SUBROUTINE INI_AUTODIFF |
11 |
C | o Initialise to zero some active arrays |
12 |
C *==========================================================* |
13 |
C \ev |
14 |
|
15 |
C !USES: |
16 |
IMPLICIT NONE |
17 |
C === Global variables === |
18 |
#include "SIZE.h" |
19 |
#include "EEPARAMS.h" |
20 |
#include "PARAMS.h" |
21 |
#include "SURFACE.h" |
22 |
|
23 |
C !INPUT/OUTPUT PARAMETERS: |
24 |
C == Routine arguments == |
25 |
C myThid - Number of this instance of INI_UVEL |
26 |
INTEGER myThid |
27 |
|
28 |
#ifdef ALLOW_AUTODIFF_TAMC |
29 |
|
30 |
C !LOCAL VARIABLES: |
31 |
C == Local variables == |
32 |
C bi,bj - Loop counters |
33 |
C I,J,K |
34 |
INTEGER bi, bj |
35 |
INTEGER I, J, K |
36 |
CEOP |
37 |
|
38 |
C-- Over all tiles |
39 |
DO bj = myByLo(myThid), myByHi(myThid) |
40 |
DO bi = myBxLo(myThid), myBxHi(myThid) |
41 |
|
42 |
C- 3D arrays |
43 |
|
44 |
C- 2D arrays |
45 |
DO J=1-Oly,sNy+Oly |
46 |
DO I=1-Olx,sNx+Olx |
47 |
#ifdef EXACT_CONSERV |
48 |
hDivFlow(I,J,bi,bj)=0. _d 0 |
49 |
#endif |
50 |
ENDDO |
51 |
ENDDO |
52 |
|
53 |
ENDDO |
54 |
ENDDO |
55 |
|
56 |
#endif /* ALLOW_AUTODIFF_TAMC */ |
57 |
|
58 |
END |