def setUp(self): """ Create a blank problem. """ self.mesh = UnitCubeMesh(10, 10, 10) self.V = FunctionSpace(self.mesh, 'CG', 1) self.prob = problem.Problem(mesh=self.mesh, V=self.V)
def setUp(self): """ Create a problem. """ m = UnitCubeMesh(10, 10, 10) V = FunctionSpace(m, 'CG', 1) self.problem = problem.Problem(m, V)
def setUp(self): """ Create a problem and function to set bounds on. """ self.mesh = UnitCubeMesh(10, 10, 10) self.V = FunctionSpace(self.mesh, 'CG', 1) self.prob = problem.Problem(mesh=self.mesh, V=self.V) self.prob.to_bound = Function(self.V) self.prob.test_func = self.prob.to_bound + 1