1 |
C $Header: $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "PROFILES_OPTIONS.h" |
5 |
|
6 |
subroutine profiles_init_varia( mythid ) |
7 |
|
8 |
c ================================================================== |
9 |
c SUBROUTINE profiles_init_varia |
10 |
c ================================================================== |
11 |
c |
12 |
c o Initialise the variable cost function part. |
13 |
c |
14 |
c started: Christian Eckert eckert@mit.edu 30-Jun-1999 |
15 |
c changed: Christian Eckert eckert@mit.edu 18-Apr-2000 |
16 |
c - Restructured the code in order to create a package |
17 |
c for the MITgcmUV. |
18 |
c heimbach@mit.edu 05-Nov-2003 Now ecco part of cost |
19 |
c |
20 |
c ================================================================== |
21 |
c SUBROUTINE profiles_init_varia |
22 |
c ================================================================== |
23 |
|
24 |
implicit none |
25 |
|
26 |
c == global variables == |
27 |
|
28 |
#include "EEPARAMS.h" |
29 |
#include "SIZE.h" |
30 |
#include "GRID.h" |
31 |
|
32 |
#ifdef ALLOW_PROFILES |
33 |
#include "profiles.h" |
34 |
#endif |
35 |
|
36 |
c == routine arguments == |
37 |
|
38 |
integer mythid |
39 |
|
40 |
c == local variables == |
41 |
|
42 |
integer bi,bj |
43 |
integer itlo,ithi |
44 |
integer jtlo,jthi |
45 |
integer i,j,k |
46 |
integer num_file,num_var |
47 |
|
48 |
logical exst |
49 |
|
50 |
c == external functions == |
51 |
|
52 |
c == end of interface == |
53 |
jtlo = mybylo(mythid) |
54 |
jthi = mybyhi(mythid) |
55 |
itlo = mybxlo(mythid) |
56 |
ithi = mybxhi(mythid) |
57 |
|
58 |
c-- Initialize the tiled cost function contributions. |
59 |
do bj = jtlo,jthi |
60 |
do bi = itlo,ithi |
61 |
do num_file=1,NFILESPROFMAX |
62 |
do num_var=1,NVARMAX |
63 |
objf_profiles(num_file,num_var,bi,bj)= 0. _d 0 |
64 |
num_profiles(num_file,num_var,bi,bj) = 0. _d 0 |
65 |
profiles_dummy(num_file,num_var,bi,bj)=0. _d 0 |
66 |
enddo |
67 |
enddo |
68 |
enddo |
69 |
enddo |
70 |
|
71 |
_BARRIER |
72 |
|
73 |
return |
74 |
end |
75 |
|