OPM / opm-models

The models module for the Open Porous Media Simulation (OPM) framework
Other
17 stars 69 forks source link

Avoid call to FaceDir::FromIntersectionIndex() in hot path. #898

Closed atgeirr closed 4 months ago

atgeirr commented 4 months ago

Call is expensive, might also be good to improve the function in opm-common. (FaceDir.cpp) I leave that to others though.

This fixes the significant preformance regression in flux calculations that was introduced earlier. On the order of 5% total at least.

atgeirr commented 4 months ago

Not directly related to OPM/opm-simulators#5318, but I will test both together.

atgeirr commented 4 months ago

jenkins build this opm-simulators=5318 please