COMP: cannot resolve read in UnsortedMeshedSurface constructor

- fix linkage for cellModeller compat methods
This commit is contained in:
Mark Olesen
2021-07-05 13:28:20 +02:00
parent 00990698ad
commit 8a1f667067
4 changed files with 5 additions and 6 deletions

View File

@ -258,7 +258,7 @@ int main(int argc, char *argv[])
// UnsortedMeshedSurface<face> surf2;
// is >> surf2;
// surf2.read(is); // FAIL: private method
// surf2.readIstream(is); // FAIL: private method
}
if (args.found("orient"))

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2017-2020 OpenCFD Ltd.
Copyright (C) 2017-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
@ -38,7 +38,7 @@ struct cellModeller
//- Deprecated(2017-11) equivalent to cellModel::ptr static method.
// \deprecated(2017-11) use cellModel::ptr instead
FOAM_DEPRECATED_FOR(2017-11, "cellModel::ptr() static method")
const cellModel* lookup(const word& modelName)
static const cellModel* lookup(const word& modelName)
{
return cellModel::ptr(modelName);
}
@ -46,7 +46,7 @@ struct cellModeller
//- Deprecated(2017-11) equivalent to cellModel::ptr static method.
// \deprecated(2017-11) use cellModel::ptr instead
FOAM_DEPRECATED_FOR(2017-11, "cellModel::ptr() static method")
const cellModel* lookup(const label modelIndex)
static const cellModel* lookup(const label modelIndex)
{
return cellModel::ptr(modelIndex);
}

View File

@ -27,7 +27,6 @@ License
#include "PDRblock.H"
#include "ListOps.H"
#include "cellModeller.H"
#include "gradingDescriptors.H"
#include "objectRegistry.H"
#include "Time.H"

View File

@ -280,7 +280,7 @@ Foam::UnsortedMeshedSurface<Face>::UnsortedMeshedSurface
:
UnsortedMeshedSurface<Face>()
{
read(is);
readIstream(is);
}