mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
processorFvPatchField: Reinstate 'value' as an optional entry
This commit is contained in:
@ -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
|
||||
(
|
||||
|
||||
@ -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
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user