mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 12:54:50 +01:00
fix: use resize instead of reserve
This commit is contained in:
parent
871a2ec82a
commit
dd32c0263e
@ -88,7 +88,7 @@ void DiffusionModule::initialize(poet::DiffusionParams args) {
|
|||||||
this->alpha = local_alpha;
|
this->alpha = local_alpha;
|
||||||
|
|
||||||
// initialize field
|
// initialize field
|
||||||
field.reserve(this->n_cells_per_prop * this->prop_count);
|
field.resize(this->n_cells_per_prop * this->prop_count);
|
||||||
for (uint32_t i = 0; i < this->prop_count; i++) {
|
for (uint32_t i = 0; i < this->prop_count; i++) {
|
||||||
std::vector<double> prop_vec =
|
std::vector<double> prop_vec =
|
||||||
grid.getSpeciesByName(this->prop_names[i]);
|
grid.getSpeciesByName(this->prop_names[i]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user