Closed stephankramer closed 7 years ago
I can reproduce this and I'll have a close look at it. Thanks for letting us know
Just an update: I believe I fixed the issue in https://github.com/firedrakeproject/firedrake/tree/slate-coefficient-fix.
I had to make a minor change in thetis/assembledschur.py
because cxt
was being called out of scope. Making cxt
a class attribute fixed that. With my firedrake branch, the test seems to be passing.
I will clean up the branch and submit a PR into Firedrake master soon!
I am trying to use SLATE to implement a preconditioner for a Schur system A11-A10 A00^{-1} A01, where A00 is a DG mass matrix that assembles the Schur system explicitly (on @wence- 's suggestion here: https://github.com/thetisproject/thetis/pull/97#discussion_r116945058). The relevant code is:
here
a
is the form of the coupled SWE system (only linear terms). This fails in the last step with a compilation error because the generated code contains a subroutine:which contains a
w_6
argument twice.Unfortunately I haven't been able to reproduce in a standalone test yet. To reproduce in thetis, checkout the assembledschur-slate branch of thetis, and run
py.test -k pressurep -svx test/swe2d/test_standing_wave.py
.