Commit 24452ecd authored by Chris Cantwell's avatar Chris Cantwell

Added small temporary hack to "rollback" state to beginning of timestep.

Now produces correct answer.
parent 579bba40
...@@ -109,6 +109,9 @@ int main(int argc, char *argv[]) ...@@ -109,6 +109,9 @@ int main(int argc, char *argv[])
int x = session->GetComm()->EnrolSpare(); int x = session->GetComm()->EnrolSpare();
cout << "Enroled spare, result: " << x << endl; cout << "Enroled spare, result: " << x << endl;
--n; // need to roll back to previous time step here... --n; // need to roll back to previous time step here...
Vmath::Smul(nq, -delta_t*epsilon, field->GetPhys(), 1,
field->UpdatePhys(), 1);
} catch (...) { } catch (...) {
cout << "ERROR WHEN PERFORMING ENROLSPARE!!!" << endl; cout << "ERROR WHEN PERFORMING ENROLSPARE!!!" << endl;
exit(-1); exit(-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment