コード例 #1
0
 def setBackground(self, elasticParam):
     #Checking if getCpp is present
     if ("getCpp" in dir(elasticParam)):
         elasticParam = elasticParam.getCpp()
     with pyElastic_iso_double_nl_3D.ostream_redirect():
         self.pyOp.setBackground(elasticParam)
     return
コード例 #2
0
 def adjoint(self, add, model, data):
     #Checking if getCpp is present
     if ("getCpp" in dir(model)):
         model = model.getCpp()
     if ("getCpp" in dir(data)):
         data = data.getCpp()
     with pyElastic_iso_double_nl_3D.ostream_redirect():
         self.pyOp.adjoint(add, model, data)
     return
コード例 #3
0
 def dotTestCpp(self, verb=False, maxError=.00001):
     """Method to call the Cpp class dot-product test"""
     with pyElastic_iso_double_nl_3D.ostream_redirect():
         result = self.pyOp.dotTest(verb, maxError)
     return result