Skip to content
Snippets Groups Projects
Commit 903433ba authored by Tom Fischer's avatar Tom Fischer
Browse files

removed OpenMP parallelization (since this part was the reason for a memory leak)

parent 86fdd915
No related branches found
No related tags found
No related merge requests found
......@@ -165,13 +165,7 @@ void Mesh::setEdgeLengthRange(const double &min_length, const double &max_length
void Mesh::setElementsConnectedToElements()
{
const size_t nElements = _elements.size();
#ifdef _OPENMP
OPENMP_LOOP_TYPE m;
#pragma omp parallel for
#else
unsigned m(0);
#endif
for (m=0; m<nElements; ++m)
for (unsigned m(0); m<nElements; ++m)
{
// create vector with all elements connected to current element (includes lots of doubles!)
std::vector<Element*> neighbors;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment