ENH: PatchInteractionModel: make abstract - force correct() on every implementation

This commit is contained in:
mattijs
2013-08-06 17:18:53 +01:00
parent 10a7220b51
commit 8782cc03ef
2 changed files with 4 additions and 35 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -154,31 +154,6 @@ const Foam::word& Foam::PatchInteractionModel<CloudType>::UName() const
} }
template<class CloudType>
bool Foam::PatchInteractionModel<CloudType>::correct
(
typename CloudType::parcelType&,
const polyPatch&,
bool&,
const scalar,
const tetIndices&
)
{
notImplemented
(
"bool Foam::PatchInteractionModel<CloudType>::correct"
"("
"typename CloudType::parcelType&, "
"const polyPatch&, "
"bool&, "
"const scalar, "
"const tetIndices& "
") const"
);
return false;
}
template<class CloudType> template<class CloudType>
void Foam::PatchInteractionModel<CloudType>::info(Ostream& os) void Foam::PatchInteractionModel<CloudType>::info(Ostream& os)
{ {

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -118,13 +118,7 @@ public:
PatchInteractionModel(const PatchInteractionModel<CloudType>& pim); PatchInteractionModel(const PatchInteractionModel<CloudType>& pim);
//- Construct and return a clone //- Construct and return a clone
virtual autoPtr<PatchInteractionModel<CloudType> > clone() const virtual autoPtr<PatchInteractionModel<CloudType> > clone() const = 0;
{
return autoPtr<PatchInteractionModel<CloudType> >
(
new PatchInteractionModel<CloudType>(*this)
);
}
//- Destructor //- Destructor
@ -162,7 +156,7 @@ public:
bool& keepParticle, bool& keepParticle,
const scalar trackFraction, const scalar trackFraction,
const tetIndices& tetIs const tetIndices& tetIs
); ) = 0;
// I-O // I-O