Commit de97a84c authored by Spencer Sherwin's avatar Spencer Sherwin

Updated to fix bug when using Mixed Boundary conditions in the Inc Navier...

Updated to fix bug when using Mixed Boundary conditions in the Inc Navier Stokes Solver in parallell. The m_hash key was previously only being set on one processor. This has now been made to have the same value on all processsors
parent d49e26bc
......@@ -502,6 +502,12 @@ namespace Nektar
m_hash = boost::hash_range(
m_localToGlobalMap.begin(), m_localToGlobalMap.end());
// Add up hash values if parallel
int hash = m_hash;
m_comm->AllReduce(hash,
LibUtilities::ReduceSum);
m_hash = hash;
}
/**
......
......@@ -1461,6 +1461,12 @@ namespace Nektar
m_hash = boost::hash_range(m_localToGlobalMap.begin(),
m_localToGlobalMap.end());
// Add up hash values if parallel
int hash = m_hash;
m_comm->AllReduce(hash,
LibUtilities::ReduceSum);
m_hash = hash;
}
} // namespace
} // namespace
......@@ -171,6 +171,12 @@ namespace Nektar
m_hash = boost::hash_range(m_localToGlobalBndMap.begin(),
m_localToGlobalBndMap.end());
// Add up hash values if parallel
int hash = m_hash;
m_comm->AllReduce(hash,
LibUtilities::ReduceSum);
m_hash = hash;
}
......
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