Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
881ca2a4
Commit
881ca2a4
authored
Aug 06, 2018
by
mattijs
Browse files
ENH: cyclicACMI: make sure non-overlap is before cyclicACMI
parent
2290b064
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/fields/fvPatchFields/constraint/cyclicACMI/cyclicACMIFvPatchField.C
View file @
881ca2a4
...
...
@@ -68,6 +68,30 @@ Foam::cyclicACMIFvPatchField<Type>::cyclicACMIFvPatchField
if
(
!
dict
.
found
(
"value"
)
&&
this
->
coupled
())
{
// Extra check: make sure that the non-overlap patch is before
// this so it has actually been read - evaluate will crash otherwise
const
GeometricField
<
Type
,
fvPatchField
,
volMesh
>&
fld
=
static_cast
<
const
GeometricField
<
Type
,
fvPatchField
,
volMesh
>&>
(
this
->
primitiveField
()
);
if
(
!
fld
.
boundaryField
().
set
(
cyclicACMIPatch_
.
nonOverlapPatchID
()))
{
FatalIOErrorInFunction
(
dict
)
<<
" patch "
<<
p
.
name
()
<<
" of field "
<<
this
->
internalField
().
name
()
<<
" refers to non-overlap patch "
<<
cyclicACMIPatch_
.
cyclicACMIPatch
().
nonOverlapPatchName
()
<<
" which is not constructed yet."
<<
nl
<<
" Either supply an initial value or change the ordering"
<<
" in the file"
<<
exit
(
FatalIOError
);
}
this
->
evaluate
(
Pstream
::
commsTypes
::
blocking
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment