/[MITgcm]/MITgcm/optim/simul.F
ViewVC logotype

Annotation of /MITgcm/optim/simul.F

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


Revision 1.3 - (hide annotations) (download)
Thu Sep 9 15:58:42 2004 UTC (19 years, 7 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint62v, checkpoint57m_post, checkpoint62u, checkpoint57g_pre, checkpoint62t, checkpoint57s_post, checkpoint58b_post, checkpoint57b_post, checkpoint57g_post, checkpoint56b_post, checkpoint57y_post, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65l, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint62c, checkpoint57r_post, checkpoint57d_post, checkpoint57i_post, checkpoint59, checkpoint58, checkpoint55, checkpoint57, checkpoint56, checkpoint58f_post, checkpoint57n_post, checkpoint58d_post, checkpoint62s, checkpoint58a_post, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint57z_post, checkpoint54f_post, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62w, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint58y_post, checkpoint58t_post, checkpoint55i_post, checkpoint58m_post, checkpoint57l_post, checkpoint57t_post, checkpoint55c_post, checkpoint63g, checkpoint57v_post, checkpoint57f_post, checkpoint64, checkpoint65, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint57a_post, checkpoint57h_pre, checkpoint58w_post, checkpoint57h_post, checkpoint57y_pre, checkpoint55g_post, checkpoint58o_post, checkpoint57c_post, checkpoint58p_post, checkpoint58q_post, checkpoint55d_post, checkpoint58e_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint55d_pre, checkpoint57c_pre, checkpoint58r_post, checkpoint55j_post, checkpoint55h_post, checkpoint58n_post, checkpoint57e_post, checkpoint55b_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint55f_post, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint57p_post, checkpint57u_post, checkpoint57q_post, eckpoint57e_pre, checkpoint58k_post, checkpoint62b, checkpoint58v_post, checkpoint56a_post, checkpoint64y, checkpoint64x, checkpoint58l_post, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint57h_done, checkpoint57j_post, checkpoint57f_pre, checkpoint61f, checkpoint58g_post, checkpoint58x_post, checkpoint61n, checkpoint59j, checkpoint58h_post, checkpoint56c_post, checkpoint58j_post, checkpoint57a_pre, checkpoint55a_post, checkpoint57o_post, checkpoint61q, checkpoint57k_post, checkpoint57w_post, checkpoint61e, checkpoint58i_post, checkpoint57x_post, checkpoint58c_post, checkpoint58u_post, checkpoint58s_post, checkpoint55e_post, checkpoint61g, checkpoint61d, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.2: +8 -2 lines
Small modifs and fixes
(mostly change to real*4 for large-scale ECCO runs)

1 heimbach 1.2
2    
3     subroutine simul(
4     I indic,
5     I nn,
6     I xx,
7     O objf,
8     O adxx
9     & )
10    
11     c ==================================================================
12     c SUBROUTINE simul
13     c ==================================================================
14     c
15     c o This routine is called by the large-scale optimization lsopt.
16     c
17     c Input : indic - Parameter (not used here).
18     c nn - Number of control variables.
19     c xx - Array of control variables.
20     c
21     c Output : objf - Value of objective function.
22     c adxx - Gradients of objective function with respect
23     c to the control variables.
24     c
25     c
26     c started: Christian Eckert eckert@mit.edu 15-Feb-2000
27     c
28     c changed: Christian Eckert eckert@mit.edu 10-Mar-2000
29     c
30     c - Added ECCO layout.
31     c
32     c changed: Patrick Heimbach heimbach@mit.edu 19-Jun-2000
33     c - finished, revised and debugged
34     c
35     c ==================================================================
36     c SUBROUTINE simul
37     c ==================================================================
38    
39     implicit none
40    
41     c == global variables ==
42    
43     #include "EEPARAMS.h"
44     #include "SIZE.h"
45     #include "ctrl.h"
46    
47     c == routine arguments ==
48    
49     integer indic
50     integer nn
51     _RL xx(nn)
52     _RL objf
53     _RL adxx(nn)
54    
55     c == local variables ==
56    
57     integer i
58     _RL adobjf
59    
60     logical lheaderonly
61    
62     c == end of interface ==
63    
64 heimbach 1.3 print *, 'pathei-lsopt in simul'
65    
66 heimbach 1.2 c-- Call the combined modified forward model and the adjoint model.
67     do i = 1,nn
68 heimbach 1.3 adxx(i) = 0.
69 heimbach 1.2 enddo
70 heimbach 1.3
71     adobjf = 1.
72 heimbach 1.2 c
73     lheaderonly = .false.
74 heimbach 1.3
75     print *, 'pathei-lsopt vor optim_readdata'
76    
77 heimbach 1.2 call optim_readdata( nn, ctrlname, lheaderonly, objf, xx )
78     call optim_readdata( nn, costname, lheaderonly, objf, adxx )
79    
80     indic = indic
81    
82     cph(
83     print *, ' leaving simul with nn, objf = ', nn, objf
84     print *, ' leaving simul with xx, adxx = ', xx(1), adxx(1)
85     do i=1,nn
86     c if (xx(i).EQ.'NaN') then
87     c print *, 'pathei - out: i = ', i
88     c end if
89     end do
90     cph)
91    
92     return
93     end

  ViewVC Help
Powered by ViewVC 1.1.22