1 |
C $Header: /u/gcmpack/MITgcm/pkg/cost/cost_readparms.F,v 1.4 2002/07/13 03:01:39 heimbach Exp $ |
2 |
|
3 |
#include "COST_CPPOPTIONS.h" |
4 |
|
5 |
subroutine cost_readparms( mythid ) |
6 |
|
7 |
c ================================================================== |
8 |
c SUBROUTINE cost_readparms |
9 |
c ================================================================== |
10 |
c |
11 |
c o This routine initialises the package cost. |
12 |
c |
13 |
c started: Ralf Giering 18-Jan-2001 |
14 |
c |
15 |
c ================================================================== |
16 |
c SUBROUTINE cost_readparms |
17 |
c ================================================================== |
18 |
|
19 |
implicit none |
20 |
|
21 |
c == global variables == |
22 |
|
23 |
#include "EEPARAMS.h" |
24 |
#include "SIZE.h" |
25 |
#include "GRID.h" |
26 |
|
27 |
#include "cost.h" |
28 |
|
29 |
c == routine arguments == |
30 |
integer mythid |
31 |
|
32 |
c == local variables == |
33 |
|
34 |
c == end of interface == |
35 |
|
36 |
c-- Read the namelist input. |
37 |
namelist /cost_nml/ |
38 |
& mult_atl, mult_test, mult_tracer |
39 |
|
40 |
_BEGIN_MASTER( myThid ) |
41 |
|
42 |
c-- Set default values. |
43 |
mult_atl = 0. _d 0 |
44 |
mult_test = 0. _d 0 |
45 |
mult_tracer = 0. _d 0 |
46 |
|
47 |
c-- Next, read the cost data file. |
48 |
call nml_filter( 'data.cost', scrunit1, myThid ) |
49 |
if (scrunit1 .eq. 0) then |
50 |
stop 'cost_readparms: reading namelist failed' |
51 |
end if |
52 |
read( scrunit1, nml = cost_nml ) |
53 |
close( scrunit1 ) |
54 |
|
55 |
_END_MASTER( mythid ) |
56 |
|
57 |
_BARRIER |
58 |
|
59 |
end |