processorFvPatchField: Reinstate 'value' as an optional entry

This commit is contained in:
Henry Weller
2016-09-25 16:54:20 +01:00
parent c6b3632c85
commit 9d3f407fc7
2 changed files with 65 additions and 65 deletions

View File

@ -67,6 +67,38 @@ Foam::processorFvPatchField<Type>::processorFvPatchField
{}
template<class Type>
Foam::processorFvPatchField<Type>::processorFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
const dictionary& dict
)
:
coupledFvPatchField<Type>(p, iF, dict, dict.found("value")),
procPatch_(refCast<const processorFvPatch>(p)),
sendBuf_(0),
receiveBuf_(0),
outstandingSendRequest_(-1),
outstandingRecvRequest_(-1),
scalarSendBuf_(0),
scalarReceiveBuf_(0)
{
if (!isA<processorFvPatch>(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);
}
}
template<class Type>
Foam::processorFvPatchField<Type>::processorFvPatchField
(
@ -103,38 +135,6 @@ Foam::processorFvPatchField<Type>::processorFvPatchField
}
template<class Type>
Foam::processorFvPatchField<Type>::processorFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
const dictionary& dict
)
:
coupledFvPatchField<Type>(p, iF, dict),
procPatch_(refCast<const processorFvPatch>(p)),
sendBuf_(0),
receiveBuf_(0),
outstandingSendRequest_(-1),
outstandingRecvRequest_(-1),
scalarSendBuf_(0),
scalarReceiveBuf_(0)
{
if (!isA<processorFvPatch>(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);
}
}
template<class Type>
Foam::processorFvPatchField<Type>::processorFvPatchField
(

View File

@ -42,6 +42,39 @@ Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
{}
template<class Type>
Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
const dictionary& dict
)
:
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
(
@ -79,39 +112,6 @@ Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
}
template<class Type>
Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
const dictionary& dict
)
:
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
(