Skip to content
Snippets Groups Projects
Commit d9c5a5d1 authored by mattijs's avatar mattijs
Browse files

BUG: mapped: register to current, not other mesh. See #2723

parent ebe49d4c
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2011-2015 OpenFOAM Foundation Copyright (C) 2011-2015 OpenFOAM Foundation
Copyright (C) 2020-2021 OpenCFD Ltd. Copyright (C) 2020-2021,2024 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -201,7 +201,10 @@ Foam::mappedPatchBase::updateSampleMeshTime() const ...@@ -201,7 +201,10 @@ Foam::mappedPatchBase::updateSampleMeshTime() const
{ {
if (!updateSampleMeshTimePtr_) if (!updateSampleMeshTimePtr_)
{ {
const auto& mesh = sampleMesh(); // Note: explicitly register on our mesh instead of sampleMesh
// since otherwise the destructor might give problems since sampleMesh
// might have already been taken down before.
const auto& mesh = patch_.boundaryMesh().mesh();
updateSampleMeshTimePtr_.reset updateSampleMeshTimePtr_.reset
( (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment