Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
f87496b3
Commit
f87496b3
authored
6 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
ENH: mappedPatchBase: short circuit when sampling own mesh. Fixed when doing
#1046
.
parent
f2ef9951
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C
+7
-3
7 additions, 3 deletions
...meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C
with
7 additions
and
3 deletions
src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C
+
7
−
3
View file @
f87496b3
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
\\/ M anipulation | Copyright (C) 2015
-2018
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -1206,9 +1206,13 @@ void Foam::mappedPatchBase::clearOut()
const
Foam
::
polyMesh
&
Foam
::
mappedPatchBase
::
sampleMesh
()
const
{
return
patch_
.
boundaryMesh
().
mesh
().
time
().
lookupObject
<
polyMesh
>
const
polyMesh
&
thisMesh
=
patch_
.
boundaryMesh
().
mesh
();
return
(
sampleRegion
()
sameRegion_
?
thisMesh
:
thisMesh
.
time
().
lookupObject
<
polyMesh
>
(
sampleRegion
())
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment