KratosMultiphysics / Kratos

Kratos Multiphysics (A.K.A Kratos) is a framework for building parallel multi-disciplinary simulation software. Modularity, extensibility and HPC are the main objectives. Kratos has BSD license and is written in C++ with extensive Python interface.
https://kratosmultiphysics.github.io/Kratos/
Other
985 stars 242 forks source link

[GeoMechanicsApplication] Fixed an OpenMP issue for running the extrapolation process with multiple cores #12504

Closed rfaasse closed 2 days ago

rfaasse commented 2 days ago

📝 Description This PR fixes an OpenMP issue, which came to light when running the extrapolation process with multiple cores. It turned out we were writing to the cache in a block_for_each loop, which is run in parallel. This resulted into issues, either by simulataneous writing to the same memory, or writing and reading at the same time.