Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8be33ae0 authored by GACON Florian's avatar GACON Florian
Browse files

Fix assertion for reaction term in Transport

parent 905aa1f5
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,6 @@ class TransportForm(AbstractVform):
else:
self._velocity = velocity
assert isinstance(self._reaction, FunctionType)
self._reaction = reaction
def construct_form(self, u, v, sol):
......@@ -91,7 +90,7 @@ class TransportForm(AbstractVform):
#If reaction it's a non-linear problem
else:
assert isinstance(self._reaction, FunctionType)
self.lhs = self._diffusivity*dot(grad(sol), grad(v))*self.dx - \
self._source*v*self.ds - \
self._diffusivity*self._neumann_term(v) - \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment