Skip to content
GitLab
Menu
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
dc59c633
Commit
dc59c633
authored
Sep 25, 2016
by
Henry Weller
Browse files
processorFvPatchField: Reinstate 'value' as an optional entry
parent
fdece9b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/fields/fvPatchFields/constraint/processor/processorFvPatchField.C
View file @
dc59c633
...
...
@@ -70,13 +70,12 @@ Foam::processorFvPatchField<Type>::processorFvPatchField
template
<
class
Type
>
Foam
::
processorFvPatchField
<
Type
>::
processorFvPatchField
(
const
processorFvPatchField
<
Type
>&
ptf
,
const
fvPatch
&
p
,
const
DimensionedField
<
Type
,
volMesh
>&
iF
,
const
fvPatchFieldMapper
&
mapper
const
dictionary
&
dict
)
:
coupledFvPatchField
<
Type
>
(
p
tf
,
p
,
iF
,
mapper
),
coupledFvPatchField
<
Type
>
(
p
,
iF
,
dict
,
dict
.
found
(
"value"
)
),
procPatch_
(
refCast
<
const
processorFvPatch
>
(
p
)),
sendBuf_
(
0
),
receiveBuf_
(
0
),
...
...
@@ -85,33 +84,31 @@ Foam::processorFvPatchField<Type>::processorFvPatchField
scalarSendBuf_
(
0
),
scalarReceiveBuf_
(
0
)
{
if
(
!
isA
<
processorFvPatch
>
(
this
->
patch
()
))
if
(
!
isA
<
processorFvPatch
>
(
p
))
{
FatalErrorInFunction
FatalIOErrorInFunction
(
dict
)
<<
"
\n
patch type '"
<<
p
.
type
()
<<
"' not constraint type '"
<<
typeName
<<
"'"
<<
"
\n
for patch "
<<
p
.
name
()
<<
" of field "
<<
this
->
internalField
().
name
()
<<
" in file "
<<
this
->
internalField
().
objectPath
()
<<
exit
(
FatalIOError
);
}
if
(
debug
&&
!
ptf
.
ready
())
{
FatalErrorInFunction
<<
"On patch "
<<
procPatch_
.
name
()
<<
" outstanding request."
<<
abort
(
FatalError
);
}
}
template
<
class
Type
>
Foam
::
processorFvPatchField
<
Type
>::
processorFvPatchField
(
const
processorFvPatchField
<
Type
>&
ptf
,
const
fvPatch
&
p
,
const
DimensionedField
<
Type
,
volMesh
>&
iF
,
const
dictionary
&
dict
const
fvPatchFieldMapper
&
mapper
)
:
coupledFvPatchField
<
Type
>
(
p
,
iF
,
dict
),
coupledFvPatchField
<
Type
>
(
ptf
,
p
,
iF
,
mapper
),
procPatch_
(
refCast
<
const
processorFvPatch
>
(
p
)),
sendBuf_
(
0
),
receiveBuf_
(
0
),
...
...
@@ -120,18 +117,21 @@ Foam::processorFvPatchField<Type>::processorFvPatchField
scalarSendBuf_
(
0
),
scalarReceiveBuf_
(
0
)
{
if
(
!
isA
<
processorFvPatch
>
(
p
))
if
(
!
isA
<
processorFvPatch
>
(
this
->
patch
()
))
{
FatalIOErrorInFunction
(
dict
)
<<
"
\n
patch type '"
<<
p
.
type
()
FatalErrorInFunction
<<
"' not constraint type '"
<<
typeName
<<
"'"
<<
"
\n
for patch "
<<
p
.
name
()
<<
" of field "
<<
this
->
internalField
().
name
()
<<
" in file "
<<
this
->
internalField
().
objectPath
()
<<
exit
(
FatalIOError
);
}
if
(
debug
&&
!
ptf
.
ready
())
{
FatalErrorInFunction
<<
"On patch "
<<
procPatch_
.
name
()
<<
" outstanding request."
<<
abort
(
FatalError
);
}
}
...
...
src/finiteVolume/fields/fvPatchFields/constraint/processorCyclic/processorCyclicFvPatchField.C
View file @
dc59c633
...
...
@@ -47,68 +47,68 @@ Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
(
const
fvPatch
&
p
,
const
DimensionedField
<
Type
,
volMesh
>&
iF
,
const
Field
<
Type
>&
f
const
dictionary
&
dict
)
:
processorFvPatchField
<
Type
>
(
p
,
iF
,
f
),
processorFvPatchField
<
Type
>
(
p
,
iF
,
dict
),
procPatch_
(
refCast
<
const
processorCyclicFvPatch
>
(
p
))
{}
{
if
(
!
isType
<
processorCyclicFvPatch
>
(
p
))
{
FatalIOErrorInFunction
(
dict
)
<<
"
\n
patch type '"
<<
p
.
type
()
<<
"' not constraint type '"
<<
typeName
<<
"'"
<<
"
\n
for patch "
<<
p
.
name
()
<<
" of field "
<<
this
->
internalField
().
name
()
<<
" in file "
<<
this
->
internalField
().
objectPath
()
<<
exit
(
FatalIOError
);
}
if
(
Pstream
::
defaultCommsType
==
Pstream
::
scheduled
)
{
WarningInFunction
<<
"Scheduled communication with split cyclics not supported."
<<
endl
;
}
}
template
<
class
Type
>
Foam
::
processorCyclicFvPatchField
<
Type
>::
processorCyclicFvPatchField
(
const
processorCyclicFvPatchField
<
Type
>&
ptf
,
const
fvPatch
&
p
,
const
DimensionedField
<
Type
,
volMesh
>&
iF
,
const
fvPatch
Field
Map
pe
r
&
mapper
const
Field
<
Ty
pe
>
&
f
)
:
processorFvPatchField
<
Type
>
(
ptf
,
p
,
iF
,
mapper
),
processorFvPatchField
<
Type
>
(
p
,
iF
,
f
),
procPatch_
(
refCast
<
const
processorCyclicFvPatch
>
(
p
))
{
if
(
!
isType
<
processorCyclicFvPatch
>
(
this
->
patch
()))
{
FatalErrorInFunction
<<
"' not constraint type '"
<<
typeName
<<
"'"
<<
"
\n
for patch "
<<
p
.
name
()
<<
" of field "
<<
this
->
internalField
().
name
()
<<
" in file "
<<
this
->
internalField
().
objectPath
()
<<
exit
(
FatalIOError
);
}
}
{}
template
<
class
Type
>
Foam
::
processorCyclicFvPatchField
<
Type
>::
processorCyclicFvPatchField
(
const
processorCyclicFvPatchField
<
Type
>&
ptf
,
const
fvPatch
&
p
,
const
DimensionedField
<
Type
,
volMesh
>&
iF
,
const
dictionary
&
dict
const
fvPatchFieldMapper
&
mapper
)
:
processorFvPatchField
<
Type
>
(
p
,
iF
,
dict
),
processorFvPatchField
<
Type
>
(
ptf
,
p
,
iF
,
mapper
),
procPatch_
(
refCast
<
const
processorCyclicFvPatch
>
(
p
))
{
if
(
!
isType
<
processorCyclicFvPatch
>
(
p
))
if
(
!
isType
<
processorCyclicFvPatch
>
(
this
->
patch
()
))
{
FatalIOErrorInFunction
(
dict
)
<<
"
\n
patch type '"
<<
p
.
type
()
FatalErrorInFunction
<<
"' not constraint type '"
<<
typeName
<<
"'"
<<
"
\n
for patch "
<<
p
.
name
()
<<
" of field "
<<
this
->
internalField
().
name
()
<<
" in file "
<<
this
->
internalField
().
objectPath
()
<<
exit
(
FatalIOError
);
}
if
(
Pstream
::
defaultCommsType
==
Pstream
::
scheduled
)
{
WarningInFunction
<<
"Scheduled communication with split cyclics not supported."
<<
endl
;
}
}
...
...
Write
Preview
Supports
Markdown
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