mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: PatchInteractionModel: make abstract - force correct() on every implementation
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
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>
|
||||
void Foam::PatchInteractionModel<CloudType>::info(Ostream& os)
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -118,13 +118,7 @@ public:
|
||||
PatchInteractionModel(const PatchInteractionModel<CloudType>& pim);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual autoPtr<PatchInteractionModel<CloudType> > clone() const
|
||||
{
|
||||
return autoPtr<PatchInteractionModel<CloudType> >
|
||||
(
|
||||
new PatchInteractionModel<CloudType>(*this)
|
||||
);
|
||||
}
|
||||
virtual autoPtr<PatchInteractionModel<CloudType> > clone() const = 0;
|
||||
|
||||
|
||||
//- Destructor
|
||||
@ -162,7 +156,7 @@ public:
|
||||
bool& keepParticle,
|
||||
const scalar trackFraction,
|
||||
const tetIndices& tetIs
|
||||
);
|
||||
) = 0;
|
||||
|
||||
|
||||
// I-O
|
||||
|
||||
Reference in New Issue
Block a user