Commit 6d45cc1d authored by Martin Reinecke's avatar Martin Reinecke
Browse files

try to conserve mpre memory

parent bdd5468c
Pipeline #77284 passed with stages
in 12 minutes and 59 seconds
...@@ -220,9 +220,13 @@ template<typename T> class Interpolator ...@@ -220,9 +220,13 @@ template<typename T> class Interpolator
mapper[itheta*ncp+iphi].push_back(i); mapper[itheta*ncp+iphi].push_back(i);
} }
size_t cnt=0; size_t cnt=0;
for (const auto &vec: mapper) for (auto &vec: mapper)
{
for (auto i:vec) for (auto i:vec)
idx[cnt++] = i; idx[cnt++] = i;
vec.clear();
vec.shrink_to_fit();
}
return idx; return idx;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment