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
894215e7
Commit
894215e7
authored
14 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
ENH: polyMeshUpdate : set points to something sensible for introduced points
parent
69526c6c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/OpenFOAM/meshes/polyMesh/polyMeshUpdate.C
+10
-0
10 additions, 0 deletions
src/OpenFOAM/meshes/polyMesh/polyMeshUpdate.C
with
10 additions
and
0 deletions
src/OpenFOAM/meshes/polyMesh/polyMeshUpdate.C
+
10
−
0
View file @
894215e7
...
...
@@ -65,6 +65,16 @@ void Foam::polyMesh::updateMesh(const mapPolyMesh& mpm)
// Map the list
newMotionPoints
.
map
(
oldMotionPoints
,
mpm
.
pointMap
());
// Any points created out-of-nothing get set to the current coordinate
// for lack of anything better.
forAll
(
mpm
.
pointMap
(),
newPointI
)
{
if
(
mpm
.
pointMap
()[
newPointI
]
==
-
1
)
{
newMotionPoints
[
newPointI
]
=
points_
[
newPointI
];
}
}
}
// Reset valid directions (could change by faces put into empty patches)
...
...
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