mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: thermalBaffle1D: fatalIOerror instead of fatalError
This commit is contained in:
@ -231,15 +231,15 @@ baffleThickness() const
|
|||||||
{
|
{
|
||||||
if (thickness_.size() != patch().size())
|
if (thickness_.size() != patch().size())
|
||||||
{
|
{
|
||||||
FatalErrorIn
|
FatalIOErrorIn
|
||||||
(
|
(
|
||||||
" template<class solidType>"
|
" template<class solidType>"
|
||||||
" tmp<scalarField> thermalBaffle1DFvPatchScalarField<solidType>
|
" tmp<scalarField> thermalBaffle1DFvPatchScalarField<solidType>
|
||||||
" baffleThickness() const"
|
" baffleThickness() const",
|
||||||
|
solidDict_
|
||||||
)<< " Field thickness has not been specified "
|
)<< " Field thickness has not been specified "
|
||||||
<< " for patch " << this->patch().name()
|
<< " for patch " << this->patch().name()
|
||||||
<< " in dictionary " << solidDict_
|
<< exit(FatalIOError);
|
||||||
<< abort(FatalError);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return thickness_;
|
return thickness_;
|
||||||
@ -302,9 +302,14 @@ void thermalBaffle1DFvPatchScalarField<solidType>::autoMap
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
mixedFvPatchScalarField::autoMap(m);
|
mixedFvPatchScalarField::autoMap(m);
|
||||||
|
|
||||||
|
if (this->owner())
|
||||||
|
{
|
||||||
thickness_.autoMap(m);
|
thickness_.autoMap(m);
|
||||||
Qs_.autoMap(m);
|
Qs_.autoMap(m);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class solidType>
|
template<class solidType>
|
||||||
void thermalBaffle1DFvPatchScalarField<solidType>::rmap
|
void thermalBaffle1DFvPatchScalarField<solidType>::rmap
|
||||||
|
|||||||
Reference in New Issue
Block a user