mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5429 Preallocate surface intersection trianglevertices
This commit is contained in:
parent
6e793fddc1
commit
c09cb6e26b
@ -155,11 +155,12 @@ void RivSurfaceIntersectionGeometryGenerator::calculateArrays()
|
||||
cvf::Vec3d displayModelOffset = m_hexGrid->displayOffset();
|
||||
|
||||
m_triVxToCellCornerWeights.reserve( nativeTriangleIndices.size() * 24 );
|
||||
outputTriangleVertices.reserve( nativeTriangleIndices.size() * 24 );
|
||||
|
||||
#pragma omp parallel num_threads( 6 ) // More threads have nearly no effect
|
||||
{
|
||||
// Loop local memory allocation.
|
||||
// Must be thread private in omp paralellization
|
||||
// Must be thread private in omp parallelization
|
||||
std::vector<caf::HexGridIntersectionTools::ClipVx> hexPlaneCutTriangleVxes;
|
||||
hexPlaneCutTriangleVxes.reserve( 2 * 6 * 3 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user