/[escript]/trunk/downunder/py_src/inversioncostfunctions.py
ViewVC logotype

Diff of /trunk/downunder/py_src/inversioncostfunctions.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4367 by plaub, Wed Apr 17 09:55:25 2013 UTC revision 4373 by gross, Mon Apr 22 03:16:24 2013 UTC
# Line 116  class InversionCostFunction(MeteredCostF Line 116  class InversionCostFunction(MeteredCostF
116              self.forward_models = [ forward_models ]              self.forward_models = [ forward_models ]
117          else:          else:
118              self.forward_models=forward_models              self.forward_models=forward_models
119        
120            trafo =  regularization.getCoordinateTransformation()
121            for m in self.forward_models :
122             if not m.getCoordinateTransformation() == trafo:
123               raise ValueError("Coordinate transformation for regularization and model %m don't match.")
124    
125          self.numMappings=len(self.mappings)          self.numMappings=len(self.mappings)
126          self.numModels=len(self.forward_models)          self.numModels=len(self.forward_models)

Legend:
Removed from v.4367  
changed lines
  Added in v.4373

  ViewVC Help
Powered by ViewVC 1.1.26