dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #17002
Re: [Question #93169]: solver with subdomains in pyDolfin
Question #93169 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/93169
dbeacham posted a new comment:
That should be:
class MyProblem(NonlinearProblem):
def __init__(self, a, L, ext_facet_domains=None):
NonlinearProblem.__init__(self)
self.a = a
self.L = L
self.ext_facet_domains = ext_facet_domains
def F(self, b, x):
assemble(self.L, tensor=b, exterior_facet_domains=self.ext_facet_domains)
def J(self, A, x):
assemble(self.a, tensor=A, exterior_facet_domains=self.ext_facet_domains)
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.