Skip to content
Snippets Groups Projects
Commit 8782cc03 authored by mattijs's avatar mattijs
Browse files

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

parent 10a7220b
Branches
Tags
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment