/[MITgcm]/MITgcm/pkg/cost/cost.h
ViewVC logotype

Annotation of /MITgcm/pkg/cost/cost.h

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


Revision 1.6 - (hide annotations) (download)
Thu Nov 6 22:03:49 2003 UTC (20 years, 7 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint52l_pre, hrcube4, hrcube5, checkpoint52d_pre, checkpoint52j_pre, checkpoint54d_post, checkpoint54e_post, checkpoint52l_post, checkpoint52k_post, checkpoint55, checkpoint54, checkpoint53, checkpoint52, checkpoint52f_post, checkpoint54f_post, checkpoint52i_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint55c_post, checkpoint52e_pre, checkpoint52e_post, checkpoint53d_post, checkpoint52b_pre, checkpoint54b_post, checkpoint52m_post, checkpoint52b_post, checkpoint52c_post, checkpoint52f_pre, checkpoint54a_pre, checkpoint53c_post, checkpoint54a_post, checkpoint55b_post, checkpoint53a_post, checkpoint52d_post, checkpoint53g_post, checkpoint52a_pre, checkpoint52i_post, checkpoint52h_pre, checkpoint53f_post, checkpoint52j_post, branch-netcdf, checkpoint52n_post, checkpoint53b_pre, checkpoint55a_post, checkpoint53b_post, checkpoint52a_post, ecco_c52_e35, checkpoint53d_pre, checkpoint54c_post, checkpoint51u_post
Branch point for: netcdf-sm0
Changes since 1.5: +6 -371 lines
File MIME type: text/plain
o merging from ecco-branch
o modularized cost package
  - ECCO-specific terms are now in pkg/ecco
  - cost package is driver

1 heimbach 1.1
2 heimbach 1.6 #include "PACKAGES_CONFIG.h"
3 heimbach 1.1
4     c ==================================================================
5     c HEADER COST
6     c ==================================================================
7     c
8     c o Header for model-data comparison.
9     c
10     c The individual cost function contributions are multiplied by
11     c factors mult_"var" which allow to switch off these contributions
12     c without removing them in the adjoint code. This is useful for
13     c doing tests with the adjoint and perhaps useful in assimilation
14     c experiments where individual contributions are successively
15     c switched on. For future applications it would be better to place
16     c the initialisation of the multipliers somewhere else, for example
17     c in a namelist, which is read in at the start of the model.
18     c
19     c started: Christian Eckert eckert@mit.edu 24-Feb-1999
20     c changed: Christian Eckert eckert@mit.edu
21 heimbach 1.6 c heimbach@mit.edu 05-Nov-2003 Modularize cost package
22 heimbach 1.1 c
23     c ==================================================================
24     c HEADER COST
25     c ==================================================================
26    
27    
28     c The cost function, its contributions, and multipliers:
29     c ======================================================
30     c
31     c fc - Final cost function.
32     c mult_"var" - multipliers for the individual cost
33     c function contributions.
34    
35     common /cost_r/
36 heimbach 1.6 & fc
37     _RL fc
38    
39     common /cost_objf/
40 heimbach 1.1 & objf_atl,
41 heimbach 1.2 & objf_test,
42 heimbach 1.4 & objf_tracer,
43     & objf_entropy,
44     & objf_t_misfit,
45     & objf_eflux
46 heimbach 1.1
47     _RL objf_atl (nsx,nsy)
48     _RL objf_test (nsx,nsy)
49 heimbach 1.2 _RL objf_tracer (nsx,nsy)
50 heimbach 1.4 _RL objf_entropy (nsx,nsy)
51     _RL objf_t_misfit (nsx,nsy)
52     _RL objf_eflux (nsx,nsy)
53    
54 heimbach 1.5 #ifdef ALLOW_COST_STATE_FINAL
55     common /cost_state_final_r/
56     & objf_state_final
57     _RL objf_state_final (snx,sny,nsx,nsy)
58     cph _RL objf_state_final (snx,sny,nr,nsx,nsy,2)
59 heimbach 1.4 #endif
60 heimbach 1.1
61 heimbach 1.3 #ifdef ALLOW_COST_VECTOR
62 heimbach 1.5 common /cost_vector_r/
63 heimbach 1.3 & objf_vector
64     _RL objf_vector (snx,nsx,nsy)
65     #endif
66    
67 heimbach 1.1 common /cost_aux_r/
68     & mult_atl,
69 heimbach 1.2 & mult_test,
70 heimbach 1.4 & mult_tracer,
71     & mult_entropy,
72     & mult_t_misfit,
73     & mult_eflux
74 heimbach 1.1
75     _RL mult_atl
76     _RL mult_test
77 heimbach 1.2 _RL mult_tracer
78 heimbach 1.4 _RL mult_entropy
79     _RL mult_t_misfit
80     _RL mult_eflux
81 heimbach 1.1
82     #ifdef ALLOW_COST_TEST
83     common /cost_test_i/
84     & iLocOut
85     & , jLocOut
86     & , kLocOut
87     integer iLocOut
88     integer jLocOut
89     integer kLocOut
90     #endif
91    
92     c ==================================================================
93     c END OF HEADER COST
94     c ==================================================================
95    
96    

  ViewVC Help
Powered by ViewVC 1.1.22