1 |
heimbach |
1.3 |
C $Header: /u/gcmpack/MITgcm/pkg/ecco/ecco_init.F,v 1.1.4.2 2002/05/30 22:15:00 heimbach Exp $ |
2 |
heimbach |
1.1 |
|
3 |
|
|
#include "CPP_OPTIONS.h" |
4 |
|
|
|
5 |
|
|
|
6 |
heimbach |
1.3 |
subroutine ecco_init( mythid ) |
7 |
heimbach |
1.1 |
|
8 |
|
|
c ================================================================== |
9 |
heimbach |
1.2 |
c SUBROUTINE ecco_init |
10 |
heimbach |
1.1 |
c ================================================================== |
11 |
|
|
c |
12 |
|
|
c o Initialize the ECCO release of the MITgcmUV. |
13 |
|
|
c |
14 |
|
|
c started: Christian Eckert eckert@mit.edu 29-Feb-1999 |
15 |
|
|
c |
16 |
|
|
c - Introduced to create a package for the MITgcmUV. |
17 |
|
|
c |
18 |
|
|
c changed: Christian Eckert eckert@mit.edu |
19 |
|
|
c |
20 |
|
|
c ================================================================== |
21 |
heimbach |
1.2 |
c SUBROUTINE ecco_init |
22 |
heimbach |
1.1 |
c ================================================================== |
23 |
|
|
|
24 |
|
|
implicit none |
25 |
|
|
|
26 |
|
|
c == global variables == |
27 |
|
|
|
28 |
|
|
#include "SIZE.h" |
29 |
|
|
#include "EEPARAMS.h" |
30 |
|
|
#include "PARAMS.h" |
31 |
|
|
|
32 |
|
|
c == routine arguments == |
33 |
|
|
|
34 |
|
|
integer mythid |
35 |
|
|
|
36 |
|
|
c == local variables == |
37 |
|
|
|
38 |
|
|
c == external == |
39 |
|
|
|
40 |
|
|
c == end of interface == |
41 |
|
|
|
42 |
|
|
#ifdef INCLUDE_ECCO_PACKAGE |
43 |
|
|
|
44 |
|
|
#ifndef ALLOW_ECCO_FORWARD_RUN |
45 |
|
|
c-- Map the control variables onto the model state. |
46 |
|
|
call ctrl_Map( mythid ) |
47 |
|
|
_BARRIER |
48 |
heimbach |
1.3 |
#endif |
49 |
heimbach |
1.1 |
|
50 |
heimbach |
1.3 |
#ifdef ALLOW_COST |
51 |
heimbach |
1.1 |
c-- Initialise the cost function. |
52 |
|
|
call cost_InitVaria( mythid ) |
53 |
|
|
|
54 |
|
|
c-- Initialise the time averages. |
55 |
|
|
call cost_AveragesInit( mythid ) |
56 |
|
|
#endif |
57 |
|
|
|
58 |
|
|
#endif |
59 |
|
|
|
60 |
|
|
c-- Everyone else must wait for the parameters to be loaded and |
61 |
|
|
c-- the setup to be completed. |
62 |
|
|
_BARRIER |
63 |
|
|
|
64 |
|
|
return |
65 |
|
|
end |
66 |
|
|
|