tmp<fvPatchField<Type> > fvPatchField<Type>::NewCalculatedType ( const fvPatchField<Type2>& pf ) { typename patchConstructorTable::iterator patchTypeCstrIter = patchConstructorTablePtr_->find(pf.patch().type()); if (patchTypeCstrIter != patchConstructorTablePtr_->end()) { return patchTypeCstrIter() ( pf.patch(), DimensionedField<Type, volMesh>::null() ); } else { return tmp<fvPatchField<Type> > ( new calculatedFvPatchField<Type> ( pf.patch(), DimensionedField<Type, volMesh>::null() ) ); } }
Foam::tmp<Foam::fvPatchField<Type>> Foam::fvPatchField<Type>::NewCalculatedType ( const fvPatchField<Type2>& pf ) { return NewCalculatedType(pf.patch()); }
void Foam::fvPatchField<Type>::operator/= ( const fvPatchField<scalar>& ptf ) { if (&patch_ != &ptf.patch()) { FatalErrorIn ( "PatchField<Type>::operator/=(const fvPatchField<scalar>& ptf)" ) << " incompatible patches for patch fields" << abort(FatalError); } Field<Type>::operator/=(ptf); }