mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
remove std:: from vector,unique_ptr,make_unique,array
This commit is contained in:
parent
2af4c9cd92
commit
ad4e1c9f4a
129 changed files with 1013 additions and 1033 deletions
|
|
@ -191,9 +191,8 @@ assign_temperatures()
|
|||
|
||||
//==============================================================================
|
||||
|
||||
void
|
||||
get_temperatures(std::vector<std::vector<double>>& nuc_temps,
|
||||
std::vector<std::vector<double>>& thermal_temps)
|
||||
void get_temperatures(vector<std::vector<double>>& nuc_temps,
|
||||
vector<std::vector<double>>& thermal_temps)
|
||||
{
|
||||
for (const auto& cell : model::cells) {
|
||||
// Skip non-material cells.
|
||||
|
|
@ -205,7 +204,7 @@ get_temperatures(std::vector<std::vector<double>>& nuc_temps,
|
|||
if (i_material == MATERIAL_VOID) continue;
|
||||
|
||||
// Get temperature(s) of cell (rounding to nearest integer)
|
||||
std::vector<double> cell_temps;
|
||||
vector<double> cell_temps;
|
||||
if (cell->sqrtkT_.size() == 1) {
|
||||
double sqrtkT = cell->sqrtkT_[0];
|
||||
cell_temps.push_back(sqrtkT*sqrtkT / K_BOLTZMANN);
|
||||
|
|
@ -351,7 +350,7 @@ prepare_distribcell()
|
|||
// Search through universes for material cells and assign each one a
|
||||
// unique distribcell array index.
|
||||
int distribcell_index = 0;
|
||||
std::vector<int32_t> target_univ_ids;
|
||||
vector<int32_t> target_univ_ids;
|
||||
for (const auto& u : model::universes) {
|
||||
for (auto idx : u->cells_) {
|
||||
if (distribcells.find(idx) != distribcells.end()) {
|
||||
|
|
@ -495,8 +494,8 @@ distribcell_path_inner(int32_t target_cell, int32_t map, int32_t target_offset,
|
|||
// The target must be further down the geometry tree and contained in a fill
|
||||
// cell or lattice cell in this universe. Find which cell contains the
|
||||
// target.
|
||||
std::vector<std::int32_t>::const_reverse_iterator cell_it
|
||||
{search_univ.cells_.crbegin()};
|
||||
vector<std::int32_t>::const_reverse_iterator cell_it {
|
||||
search_univ.cells_.crbegin()};
|
||||
for (; cell_it != search_univ.cells_.crend(); ++cell_it) {
|
||||
Cell& c = *model::cells[*cell_it];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue