mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Performance: Reverted OpenMP, as the function needs rewrite
This commit is contained in:
parent
d3456ffcc9
commit
dbe54ff9bf
@ -227,7 +227,6 @@ void RigMainGrid::calculateFaults()
|
|||||||
RigFault * unNamedFault = new RigFault;
|
RigFault * unNamedFault = new RigFault;
|
||||||
int unNamedFaultIdx = static_cast<int>(m_faults.size());
|
int unNamedFaultIdx = static_cast<int>(m_faults.size());
|
||||||
|
|
||||||
#pragma omp parallel for
|
|
||||||
for (int gcIdx = 0 ; gcIdx < static_cast<int>(m_cells.size()); ++gcIdx)
|
for (int gcIdx = 0 ; gcIdx < static_cast<int>(m_cells.size()); ++gcIdx)
|
||||||
{
|
{
|
||||||
if ( m_cells[gcIdx].isInvalid())
|
if ( m_cells[gcIdx].isInvalid())
|
||||||
@ -299,7 +298,6 @@ void RigMainGrid::calculateFaults()
|
|||||||
|
|
||||||
if (gcIdx < neighborGlobalCellIdx)
|
if (gcIdx < neighborGlobalCellIdx)
|
||||||
{
|
{
|
||||||
#pragma omp critical
|
|
||||||
{
|
{
|
||||||
RigFault::FaultFace ff(gcIdx, cvf::StructGridInterface::FaceType(faceIdx), neighborGlobalCellIdx);
|
RigFault::FaultFace ff(gcIdx, cvf::StructGridInterface::FaceType(faceIdx), neighborGlobalCellIdx);
|
||||||
unNamedFault->faultFaces().push_back(ff);
|
unNamedFault->faultFaces().push_back(ff);
|
||||||
|
Loading…
Reference in New Issue
Block a user