Skip to content
Snippets Groups Projects
Commit 04af0359 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Do not start at zero

parent 74f4a117
No related branches found
No related tags found
No related merge requests found
......@@ -351,6 +351,16 @@ int main(int argc, char *argv[]) {
if (parset.get<bool>("useTNNMG")) {
MyConvexProblemType myConvexProblem(stiffnessMatrix,
*myGlobalNonlinearity, b4, u4_diff);
// FIXME: This is sort of nasty
// Choose an initial iterate that is admissable
// and non-zero in as many places as possible
if (run == 1)
for (size_t i = 0; i < ignoreNodes.size(); ++i)
if (!ignoreNodes[i][1]) // Leave out partial DOF-restrictions as
// well
u4_diff[i] = 1;
MyBlockProblemType myBlockProblem(parset, myConvexProblem);
multigridStep->setProblem(u4_diff, myBlockProblem);
......
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