Skip to content

Commit

Permalink
Just apply Jacobi when computing facet areas
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Oct 28, 2021
1 parent 4a3d90d commit 327cac1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion thetis/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,13 @@ def get_facet_areas(mesh):
facet_areas = Function(HDivTrace, name="Facet areas")
mass_term = v('+')*u('+')*dS + v*u*ds
rhs = v('+')*FacetArea(mesh)*dS + v*FacetArea(mesh)*ds
solve(mass_term == rhs, facet_areas)
sp = {
"mat_type": "matfree",
"snes_type": "ksponly",
"ksp_type": "preonly",
"pc_type": "jacobi",
}
solve(mass_term == rhs, facet_areas, solver_parameters=sp)
return facet_areas


Expand Down

0 comments on commit 327cac1

Please sign in to comment.