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

[Cleanup] Move createRHS(0.0,..) to the beginning

parent e9943306
No related branches found
No related tags found
No related merge requests found
......@@ -343,6 +343,7 @@ int main(int argc, char *argv[]) {
_ell += gravityFunctional;
};
VectorType ell(finestSize);
createRHS(0.0, ell);
// {{{ Initial conditions
SingletonVectorType alpha_initial(finestSize);
......@@ -374,7 +375,6 @@ int main(int argc, char *argv[]) {
myGlobalNonlinearity->updateState(alpha_initial);
// NOTE: We assume differentiability of Psi at v0 here!
myGlobalNonlinearity->addGradient(v_initial, problem_rhs_initial);
createRHS(0.0, ell);
problem_rhs_initial -= ell;
problem_rhs_initial *= -1.0;
}
......
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