Regularization tests

This commit is contained in:
rowanc1
2014-04-15 09:47:01 -07:00
parent 25421f739f
commit f10d6cc2b7
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -19,10 +19,10 @@ class RegularizationTests(unittest.TestCase):
continue
# if 'Regularization' not in R: continue
print 'Check:', R
model = r.modelPair(self.mesh2)
reg = r(model)
m = model.example()
reg.mref = model.example()*0
mapping = r.mapPair(self.mesh2)
reg = r(self.mesh2, mapping=mapping)
m = mapping.example()
reg.mref = mapping.example()*0
passed = checkDerivative(lambda m : [reg.modelObj(m), reg.modelObjDeriv(m)], m, plotIt=False)
self.assertTrue(passed)