ENH: thermalBaffle1D: fatalIOerror instead of fatalError

This commit is contained in:
mattijs
2013-11-18 15:00:09 +00:00
parent 09ae218598
commit c515e42acf

View File

@ -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,10 +302,15 @@ 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
( (