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
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
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