BUG: mapped: register to current, not other mesh. See #2723
This commit is contained in:
parent
ebe49d4cbd
commit
d9c5a5d1a9
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
Copyright (C) 2020-2021 OpenCFD Ltd.
|
||||
Copyright (C) 2020-2021,2024 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -201,7 +201,10 @@ Foam::mappedPatchBase::updateSampleMeshTime() const
|
||||
{
|
||||
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
|
||||
(
|
||||
|
Loading…
Reference in New Issue
Block a user