Changeset 13642
- Timestamp:
- 10/12/12 14:38:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/inversion.py
r13624 r13642 96 96 #inversed parameter (10^8 for B, 50 for drag) and can be decreased 97 97 #after the first iterations 98 self.gradient_scaling=50*numpy.ones( self.nsteps)98 self.gradient_scaling=50*numpy.ones((self.nsteps,1)) 99 99 100 100 #several responses can be used: 101 self.cost_functions=101*numpy.ones( self.nsteps)101 self.cost_functions=101*numpy.ones((self.nsteps,1)) 102 102 103 103 #step_threshold is used to speed up control method. When … … 124 124 125 125 num_controls=numpy.size(md.inversion.control_parameters) 126 num_costfunc=numpy.size(md.inversion.cost_functions, 1)126 num_costfunc=numpy.size(md.inversion.cost_functions,axis=1) 127 127 128 128 md = checkfield(md,'inversion.iscontrol','values',[0,1]) … … 177 177 178 178 #process cost functions 179 num_cost_functions=numpy.size(self.cost_functions, 1)179 num_cost_functions=numpy.size(self.cost_functions,axis=1) 180 180 data=self.cost_functions 181 181 data[numpy.nonzero(data==101)]=SurfaceAbsVelMisfitEnum()
Note:
See TracChangeset
for help on using the changeset viewer.