29 |
|
|
30 |
#ifdef ALLOW_AUTODIFF_TAMC |
#ifdef ALLOW_AUTODIFF_TAMC |
31 |
#include "tamc.h" |
#include "tamc.h" |
32 |
|
#include "tamc_keys.h" |
33 |
#endif |
#endif |
34 |
|
|
35 |
C == routine arguments == |
C == routine arguments == |
62 |
DO bj = myByLo(myThid),myByHi(myThid) |
DO bj = myByLo(myThid),myByHi(myThid) |
63 |
DO bi = myBxLo(myThid),myBxHi(myThid) |
DO bi = myBxLo(myThid),myBxHi(myThid) |
64 |
|
|
65 |
|
#ifdef ALLOW_AUTODIFF_TAMC |
66 |
|
act1 = bi - myBxLo(myThid) |
67 |
|
max1 = myBxHi(myThid) - myBxLo(myThid) + 1 |
68 |
|
act2 = bj - myByLo(myThid) |
69 |
|
max2 = myByHi(myThid) - myByLo(myThid) + 1 |
70 |
|
act3 = myThid - 1 |
71 |
|
max3 = nTx*nTy |
72 |
|
act4 = ikey_dynamics - 1 |
73 |
|
ikey = (act1 + 1) + act2*max1 |
74 |
|
& + act3*max1*max2 |
75 |
|
& + act4*max1*max2*max3 |
76 |
|
#endif /* ALLOW_AUTODIFF_TAMC */ |
77 |
|
|
78 |
C-- Initialise |
C-- Initialise |
79 |
DO j = 1,sNy |
DO j = 1,sNy |
80 |
DO i = 1,sNx |
DO i = 1,sNx |
190 |
ENDDO |
ENDDO |
191 |
#endif /* ifndef ALLOW_ATM_WIND */ |
#endif /* ifndef ALLOW_ATM_WIND */ |
192 |
|
|
193 |
|
#ifdef ALLOW_AUTODIFF_TAMC |
194 |
|
CADJ STORE wspeed(:,:,bi,bj) = comlev1_bibj, key=ikey, byte=isbyte |
195 |
|
#endif |
196 |
|
|
197 |
C-- set wind-speed lower limit |
C-- set wind-speed lower limit |
198 |
DO j = 1,sNy |
DO j = 1,sNy |
199 |
DO i = 1,sNx |
DO i = 1,sNx |