1 |
heimbach |
1.1 |
|
2 |
|
|
#include "CPP_OPTIONS.h" |
3 |
|
|
|
4 |
|
|
subroutine admtlm_map( myThid ) |
5 |
|
|
C /==========================================================\ |
6 |
|
|
C | subroutine admtlm_map | |
7 |
|
|
C | o This routine assigns final T,S to cost function | |
8 |
|
|
C \==========================================================/ |
9 |
|
|
implicit none |
10 |
|
|
|
11 |
|
|
C == Global variables === |
12 |
|
|
#include "SIZE.h" |
13 |
|
|
#include "EEPARAMS.h" |
14 |
|
|
#include "PARAMS.h" |
15 |
heimbach |
1.2 |
#ifdef ALLOW_ADMTLM |
16 |
heimbach |
1.1 |
# include "adcost.h" |
17 |
|
|
# include "g_cost.h" |
18 |
|
|
#endif |
19 |
|
|
|
20 |
|
|
C ======== Routine arguments ====================== |
21 |
|
|
C myThid - Thread number for this instance of the routine. |
22 |
|
|
integer myThid |
23 |
|
|
|
24 |
heimbach |
1.2 |
#ifdef ALLOW_ADMTLM |
25 |
heimbach |
1.1 |
C ========= Local variables ========================= |
26 |
|
|
integer i, j, k |
27 |
|
|
integer bi, bj |
28 |
|
|
|
29 |
|
|
DO bj=myByLo(myThid),myByHi(myThid) |
30 |
|
|
DO bi=myBxLo(myThid),myBxHi(myThid) |
31 |
|
|
DO j=1,sNy |
32 |
|
|
DO i=1,sNx |
33 |
|
|
adobjf_state_final(i,j,bi,bj,1) = |
34 |
|
|
& g_objf_state_final(i,j,bi,bj,1) |
35 |
|
|
adobjf_state_final(i,j,bi,bj,2) = |
36 |
|
|
& g_objf_state_final(i,j,bi,bj,2) |
37 |
|
|
END DO |
38 |
|
|
END DO |
39 |
|
|
END DO |
40 |
|
|
END DO |
41 |
|
|
|
42 |
|
|
#endif |
43 |
|
|
|
44 |
|
|
end |