Skip to content

Apply mlmg to compute fluxes and gradient #3492

Answered by WeiqunZhang
ZiyangHuang asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you have to call solve. There is no guarantee that getFluxes and getGradSolution could work without calling solve first. However, you could call solve with a huge tolerance that no iteration will be needed. You could also call LPInfo::setMaxCoarseningLevel(0) to reduce the setup cost of the LinOp.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ZiyangHuang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants