processorFvPatchField: Reinstate 'value' as an optional entry
This commit is contained in:
parent
c6b3632c85
commit
9d3f407fc7
2 changed files with 65 additions and 65 deletions
|
|
@ -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>
|
template<class Type>
|
||||||
Foam::processorFvPatchField<Type>::processorFvPatchField
|
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>
|
template<class Type>
|
||||||
Foam::processorFvPatchField<Type>::processorFvPatchField
|
Foam::processorFvPatchField<Type>::processorFvPatchField
|
||||||
(
|
(
|
||||||
|
|
|
||||||
|
|
@ -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>
|
template<class Type>
|
||||||
Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
|
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>
|
template<class Type>
|
||||||
Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
|
Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
|
||||||
(
|
(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue