Skip to content

Commit

Permalink
Fixed incorrect parentheses placement.
Browse files Browse the repository at this point in the history
  • Loading branch information
aprilnovak committed Jun 10, 2019
1 parent a9fd6ca commit 31f4898
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/openmc_nek_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,17 +229,17 @@ void OpenmcNekDriver::init_temperatures()
temperatures_prev_[elem] = T;
}
}
} else if (temperature_ic_ == Initial::heat) {
// Use whatever temperature is in Nek's internal arrays, either from a restart
// file or from a useric fortran routine.
update_temperature();

// update_temperature() begins by saving temperatures_ to temperatures_prev_, and
// then changes temperatures_. We need to save temperatures_ here to
// temperatures_prev_ manually because init_temperatures() initializes both
// temperatures_ and temperatures_prev_.
std::copy(temperatures_.begin(), temperatures_.end(), temperatures_prev_.begin());
}
} else if (temperature_ic_ == Initial::heat) {
// Use whatever temperature is in Nek's internal arrays, either from a restart
// file or from a useric fortran routine.
update_temperature();

// update_temperature() begins by saving temperatures_ to temperatures_prev_, and
// then changes temperatures_. We need to save temperatures_ here to
// temperatures_prev_ manually because init_temperatures() initializes both
// temperatures_ and temperatures_prev_.
std::copy(temperatures_.begin(), temperatures_.end(), temperatures_prev_.begin());
}
}

Expand Down

0 comments on commit 31f4898

Please sign in to comment.