/[MITgcm]/MITgcm/pkg/cost/cost_readparms.F
ViewVC logotype

Annotation of /MITgcm/pkg/cost/cost_readparms.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (hide annotations) (download)
Mon Sep 27 18:00:19 2004 UTC (19 years, 8 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint56b_post, checkpoint56, checkpoint55i_post, checkpoint55g_post, checkpoint55d_post, checkpoint55d_pre, checkpoint55j_post, checkpoint55h_post, checkpoint55f_post, checkpoint56a_post, checkpoint55e_post
Changes since 1.5: +5 -1 lines
extend simple cost functions to treat time mean quantities
o cost_tile called from forward_step
o cost_accumulate_state called from cost_tile

1 heimbach 1.6 C $Header: /u/gcmpack/MITgcm/pkg/cost/cost_readparms.F,v 1.5 2003/11/06 22:03:49 heimbach Exp $
2 heimbach 1.1
3     #include "COST_CPPOPTIONS.h"
4    
5 heimbach 1.3 subroutine cost_readparms( mythid )
6 heimbach 1.1
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 heimbach 1.5 & mult_atl, mult_test, mult_tracer
39 heimbach 1.6 & , lastinterval
40 heimbach 1.1
41     _BEGIN_MASTER( myThid )
42    
43     c-- Set default values.
44     mult_atl = 0. _d 0
45     mult_test = 0. _d 0
46 heimbach 1.2 mult_tracer = 0. _d 0
47 heimbach 1.1
48 heimbach 1.6 c-- 30*24*3600 = 2592000 = 1 model month
49     lastinterval = 2592000.
50    
51 heimbach 1.1 c-- Next, read the cost data file.
52     call nml_filter( 'data.cost', scrunit1, myThid )
53     if (scrunit1 .eq. 0) then
54     stop 'cost_readparms: reading namelist failed'
55     end if
56     read( scrunit1, nml = cost_nml )
57     close( scrunit1 )
58    
59     _END_MASTER( mythid )
60    
61     _BARRIER
62    
63     end

  ViewVC Help
Powered by ViewVC 1.1.22