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())
|
||||
{
|
||||
FatalErrorIn
|
||||
FatalIOErrorIn
|
||||
(
|
||||
" template<class solidType>"
|
||||
" tmp<scalarField> thermalBaffle1DFvPatchScalarField<solidType>
|
||||
" baffleThickness() const"
|
||||
" baffleThickness() const",
|
||||
solidDict_
|
||||
)<< " Field thickness has not been specified "
|
||||
<< " for patch " << this->patch().name()
|
||||
<< " in dictionary " << solidDict_
|
||||
<< abort(FatalError);
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
|
||||
return thickness_;
|
||||
@ -302,10 +302,15 @@ void thermalBaffle1DFvPatchScalarField<solidType>::autoMap
|
||||
)
|
||||
{
|
||||
mixedFvPatchScalarField::autoMap(m);
|
||||
thickness_.autoMap(m);
|
||||
Qs_.autoMap(m);
|
||||
|
||||
if (this->owner())
|
||||
{
|
||||
thickness_.autoMap(m);
|
||||
Qs_.autoMap(m);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
template<class solidType>
|
||||
void thermalBaffle1DFvPatchScalarField<solidType>::rmap
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user