From 35e8e684a2f70444da04c60a7bd47c9ff7e4edbc Mon Sep 17 00:00:00 2001 From: Santiago Ospina De Los Rios Date: Thu, 21 Jul 2022 11:43:59 +0200 Subject: [PATCH 1/2] Add capability for thread safe grid views --- dune/grid/uggrid.hh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dune/grid/uggrid.hh b/dune/grid/uggrid.hh index fe959b7f8..688d08f0a 100644 --- a/dune/grid/uggrid.hh +++ b/dune/grid/uggrid.hh @@ -809,6 +809,14 @@ namespace Dune { static const bool v = false; }; + /** \brief UGGrid is thread-safe for grid views + \ingroup UGGrid + */ + template + struct viewThreadSafe< UGGrid > { + static const bool v = true; + }; + } } // namespace Dune -- GitLab From 263878c1077c7f7ffec12ca2349c16943e05954b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Ospina=20De=20Los=20R=C3=ADos?= Date: Fri, 14 Oct 2022 12:46:00 +0000 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c5f5b26c0..84a42d4f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception # Master (will become release 2.9) +- UGGrid is now thread safe on the grid view. - The `Geometry` interface was extended by methods `jacobian(local)` and `jacobianInverse(local)` and corresponding typedefs `Jacobian` and `JacobianInverse`. All grid implementations need to provide the new interface. For transition, the methods and typedefs are default-implemented -- GitLab