Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
OpenFOAM-plus
Commits
706a97af
Commit
706a97af
authored
May 24, 2017
by
mattijs
Browse files
BUG: pointConstraints: resize all constraints arrays. Fixes
#480
.
parent
397db1bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/interpolation/volPointInterpolation/pointConstraints.C
View file @
706a97af
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
Copyright (C) 2017 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -233,7 +233,16 @@ void Foam::pointConstraints::makePatchPatchAddressing()
// Allocate new constraint
if
(
patchPatchPoints
.
size
()
<=
pppi
)
{
// Check if not enough space. This
// can occasionally happen if -coupled points connect
// to the inside of a patch -these coupled points also
// carry a constraint
patchPatchPoints
.
setSize
(
pppi
+
100
);
patchPatchPointConstraints_
.
setSize
(
pppi
+
100
,
pointConstraint
()
);
}
patchPatchPointSet
.
insert
(
meshPointi
,
pppi
);
patchPatchPoints
[
pppi
]
=
meshPointi
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment