37 |
cgg have headers with options for OBCS masks. |
cgg have headers with options for OBCS masks. |
38 |
#include "ECCO_CPPOPTIONS.h" |
#include "ECCO_CPPOPTIONS.h" |
39 |
|
|
|
#include "ecco.h" |
|
40 |
#include "ctrl.h" |
#include "ctrl.h" |
41 |
#include "optim.h" |
#include "optim.h" |
42 |
#include "minimization.h" |
#include "minimization.h" |
74 |
integer funit |
integer funit |
75 |
|
|
76 |
integer cbuffindex |
integer cbuffindex |
77 |
_RL cbuff( sNx*nSx*nPx*sNy*nSy*nPy ) |
real*4 cbuff( sNx*nSx*nPx*sNy*nSy*nPy ) |
78 |
|
|
79 |
character*(128) fname |
character*(128) fname |
80 |
|
|
81 |
integer filei |
c integer filei |
82 |
integer filej |
c integer filej |
83 |
integer filek |
c integer filek |
84 |
|
c integer fileiG |
85 |
|
c integer filejG |
86 |
|
c integer filensx |
87 |
|
c integer filensy |
88 |
integer filenopt |
integer filenopt |
|
integer fileig |
|
|
integer filejg |
|
|
integer filensx |
|
|
integer filensy |
|
89 |
_RL fileff |
_RL fileff |
90 |
|
|
91 |
cgg( |
cgg( |
96 |
|
|
97 |
c == end of interface == |
c == end of interface == |
98 |
|
|
99 |
|
print *, 'pathei-lsopt in optim_readdata' |
100 |
|
|
101 |
c-- The reference i/o unit. |
c-- The reference i/o unit. |
102 |
funit = 20 |
funit = 20 |
103 |
|
|
130 |
|
|
131 |
c-- Generate file name and open the file. |
c-- Generate file name and open the file. |
132 |
write(fname(1:128),'(4a,i4.4)') |
write(fname(1:128),'(4a,i4.4)') |
133 |
& dfile,'_',expId(1:10),'.opt', nopt |
& dfile,'_',yctrlid(1:10),'.opt', nopt |
134 |
open( funit, file = fname, |
open( funit, file = fname, |
135 |
& status = 'old', |
& status = 'old', |
136 |
& form = 'unformatted', |
& form = 'unformatted', |
140 |
c-- Read the header. |
c-- Read the header. |
141 |
read( funit ) nvartype |
read( funit ) nvartype |
142 |
read( funit ) nvarlength |
read( funit ) nvarlength |
143 |
read( funit ) expId |
read( funit ) yctrlid |
144 |
read( funit ) filenopt |
read( funit ) filenopt |
145 |
read( funit ) fileff |
read( funit ) fileff |
146 |
read( funit ) fileiG |
read( funit ) fileiG |
148 |
read( funit ) filensx |
read( funit ) filensx |
149 |
read( funit ) filensy |
read( funit ) filensy |
150 |
|
|
|
cph( |
|
|
print *,'ph-opt 1 ', nvartype, nvarlength, filensx, filensy |
|
|
cph) |
|
|
|
|
151 |
read( funit ) (nWetcGlobal(k), k=1,nr) |
read( funit ) (nWetcGlobal(k), k=1,nr) |
152 |
read( funit ) (nWetsGlobal(k), k=1,nr) |
read( funit ) (nWetsGlobal(k), k=1,nr) |
153 |
read( funit ) (nWetwGlobal(k), k=1,nr) |
read( funit ) (nWetwGlobal(k), k=1,nr) |
181 |
cph if (lheaderonly) then |
cph if (lheaderonly) then |
182 |
print *, 'pathei: nvartype ', nvartype |
print *, 'pathei: nvartype ', nvartype |
183 |
print *, 'pathei: nvarlength ', nvarlength |
print *, 'pathei: nvarlength ', nvarlength |
184 |
print *, 'pathei: expId ', expId |
print *, 'pathei: yctrlid ', yctrlid |
185 |
print *, 'pathei: filenopt ', filenopt |
print *, 'pathei: filenopt ', filenopt |
186 |
print *, 'pathei: fileff ', fileff |
print *, 'pathei: fileff ', fileff |
187 |
print *, 'pathei: fileiG ', fileiG |
print *, 'pathei: fileiG ', fileiG |