1 |
C $Header: /u/gcmpack/MITgcm/pkg/admtlm/admtlm_map.F,v 1.4 2007/10/08 23:45:51 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "ADMTLM_OPTIONS.h" |
5 |
|
6 |
subroutine admtlm_map( myThid ) |
7 |
C /==========================================================\ |
8 |
C | subroutine admtlm_map | |
9 |
C | o This routine assigns final T,S to cost function | |
10 |
C \==========================================================/ |
11 |
implicit none |
12 |
|
13 |
C == Global variables === |
14 |
#include "SIZE.h" |
15 |
#include "EEPARAMS.h" |
16 |
#include "PARAMS.h" |
17 |
#ifdef ALLOW_ADMTLM |
18 |
# include "adcost.h" |
19 |
# include "g_cost.h" |
20 |
#endif |
21 |
|
22 |
C ======== Routine arguments ====================== |
23 |
C myThid - Thread number for this instance of the routine. |
24 |
integer myThid |
25 |
|
26 |
#ifdef ALLOW_ADMTLM |
27 |
C ========= Local variables ========================= |
28 |
integer i, j, k |
29 |
integer bi, bj |
30 |
|
31 |
DO bj=myByLo(myThid),myByHi(myThid) |
32 |
DO bi=myBxLo(myThid),myBxHi(myThid) |
33 |
DO j=1,sNy |
34 |
DO i=1,sNx |
35 |
DO k=1,4*Nr |
36 |
adobjf_state_final(i,j,bi,bj,k) = |
37 |
& g_objf_state_final(i,j,bi,bj,k) |
38 |
END DO |
39 |
adobjf_state_final(i,j,bi,bj,4*Nr+1) = |
40 |
& g_objf_state_final(i,j,bi,bj,4*Nr+1) |
41 |
END DO |
42 |
END DO |
43 |
END DO |
44 |
END DO |
45 |
|
46 |
#endif |
47 |
|
48 |
end |