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
28b59ff6c3
commit
3636070c06
@ -88,7 +88,7 @@ void DiffusionModule::initialize(poet::DiffusionParams args) {
|
||||
this->alpha = local_alpha;
|
||||
|
||||
// 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++) {
|
||||
std::vector<double> prop_vec =
|
||||
grid.getSpeciesByName(this->prop_names[i]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user