1 |
|
2 |
#include "CPP_OPTIONS.h" |
3 |
|
4 |
subroutine admtlm_dsvd2model( tmpstate, 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 |
#ifdef ALLOW_ADMTLM |
16 |
# 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 |
_RL tmpstate (snx,sny,nsx,nsy,4*Nr+1) |
24 |
|
25 |
#ifdef ALLOW_ADMTLM |
26 |
C ========= Local variables ========================= |
27 |
integer i, j, k |
28 |
integer bi, bj |
29 |
|
30 |
DO bj=myByLo(myThid),myByHi(myThid) |
31 |
DO bi=myBxLo(myThid),myBxHi(myThid) |
32 |
DO j=1,sNy |
33 |
DO i=1,sNx |
34 |
DO k=1,4*Nr |
35 |
g_objf_state_final(i,j,bi,bj,k) = |
36 |
& tmpstate(i,j,bi,bj,k) |
37 |
END DO |
38 |
g_objf_state_final(i,j,bi,bj,4*Nr+1) = |
39 |
& tmpstate(i,j,bi,bj,4*Nr+1) |
40 |
END DO |
41 |
END DO |
42 |
END DO |
43 |
END DO |
44 |
#endif |
45 |
|
46 |
end |