Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre advance mod (no additional changes) #1213

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/TimeIntegrator.C
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,6 @@ TimeIntegrator::pre_realm_advance_stage1(size_t inonlin)
<< " gammas: " << gamma1_ << " " << gamma2_ << " " << gamma3_
<< std::endl;

// state management
for (ii = realmVec_.begin(); ii != realmVec_.end(); ++ii) {
(*ii)->swap_states();
(*ii)->predict_state();
}
}

// read any fields from input file that will serve as external fields
Expand All @@ -330,6 +325,12 @@ TimeIntegrator::pre_realm_advance_stage2(size_t inonlin)
if (inonlin < 1) {
std::vector<Realm*>::iterator ii;

// state management
for (ii = realmVec_.begin(); ii != realmVec_.end(); ++ii) {
(*ii)->swap_states();
(*ii)->predict_state();
}

// populate boundary data
for (ii = realmVec_.begin(); ii != realmVec_.end(); ++ii) {
(*ii)->populate_boundary_data();
Expand Down