ENH: test: make test apps compile. Fixes #876.

This commit is contained in:
mattijs
2018-06-14 15:14:14 +01:00
parent 3d5d3b84d1
commit 3b6027d1be
18 changed files with 30 additions and 22 deletions

View File

@ -74,7 +74,7 @@ int main(int argc, char *argv[])
<< "toc: " << table4.toc() << endl; << "toc: " << table4.toc() << endl;
HashPtrTable<label, Foam::string> ptable1(0); HashPtrTable<label, Foam::string> ptable1(0);
ptable1.insert("kjhkjh", new label(10)); ptable1.insert("kjhkjh", autoPtr<label>::New(10));
Info<< "PtrTable toc: " << ptable1.toc() << endl; Info<< "PtrTable toc: " << ptable1.toc() << endl;

View File

@ -151,7 +151,7 @@ int main(int argc, char *argv[])
if (args.found("info")) if (args.found("info"))
{ {
packLst.printInfo(Info); Info<< packLst.info();
} }
Info<< nl; Info<< nl;

View File

@ -185,13 +185,13 @@ int main(int argc, char *argv[])
list1.resize(8, list1.max_value); list1.resize(8, list1.max_value);
report(list1); report(list1);
Info<< "\ntest flip() function\n"; //Info<< "\ntest flip() function\n";
list1.flip(); //list1.flip();
report(list1); //report(list1);
Info<< "\nre-flip()\n"; //Info<< "\nre-flip()\n";
list1.flip(); //list1.flip();
report(list1); //report(list1);
Info<< "\ntest set() function\n"; Info<< "\ntest set() function\n";
list1.set(1, 5); list1.set(1, 5);

View File

@ -29,10 +29,10 @@ Description
#include "argList.H" #include "argList.H"
#include "Time.H" #include "Time.H"
#include "fvMesh.H" #include "fvMesh.H"
#include "volFields.H"
#include "PatchEdgeFaceWave.H" #include "PatchEdgeFaceWave.H"
#include "patchEdgeFaceInfo.H" #include "patchEdgeFaceInfo.H"
#include "patchPatchDist.H" #include "patchPatchDist.H"
#include "fvCFD.H"
using namespace Foam; using namespace Foam;

View File

@ -205,7 +205,7 @@ int main(int argc, char *argv[])
#include "setRootCase.H" #include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
#include "createMesh.H" #include "createPolyMesh.H"
const word patchName = args[1]; const word patchName = args[1];
label patchi = mesh.boundaryMesh().findPatchID(patchName); label patchi = mesh.boundaryMesh().findPatchID(patchName);

View File

@ -33,7 +33,7 @@ Description
#include "fvMesh.H" #include "fvMesh.H"
#include "volFields.H" #include "volFields.H"
#include "Time.H" #include "Time.H"
//#include "mapDistribute.H" #include "fvCFD.H"
#include "OFstream.H" #include "OFstream.H"
#include "meshTools.H" #include "meshTools.H"
//#include "FECCellToFaceStencil.H" //#include "FECCellToFaceStencil.H"

View File

@ -1,5 +1,6 @@
EXE_INC = \ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lfiniteVolume -lfiniteVolume

View File

@ -29,6 +29,7 @@ Description
#include "argList.H" #include "argList.H"
#include "Time.H" #include "Time.H"
#include "volFields.H" #include "volFields.H"
#include "fvCFD.H"
using namespace Foam; using namespace Foam;

View File

@ -38,7 +38,7 @@ Description
#include "removeFaces.H" #include "removeFaces.H"
#include "mapPolyMesh.H" #include "mapPolyMesh.H"
#include "polyTopoChange.H" #include "polyTopoChange.H"
#include "fvcDiv.H" #include "fvCFD.H"
#include "zeroGradientFvPatchFields.H" #include "zeroGradientFvPatchFields.H"
#include "Random.H" #include "Random.H"

View File

@ -29,6 +29,7 @@ License
#include "indexedOctree.H" #include "indexedOctree.H"
#include "treeDataCell.H" #include "treeDataCell.H"
#include "OFstream.H" #include "OFstream.H"
#include "fvCFD.H"
using namespace Foam; using namespace Foam;

View File

@ -30,6 +30,7 @@ License
#include "treeDataEdge.H" #include "treeDataEdge.H"
#include "OFstream.H" #include "OFstream.H"
#include "extendedFeatureEdgeMesh.H" #include "extendedFeatureEdgeMesh.H"
#include "fvCFD.H"
using namespace Foam; using namespace Foam;

View File

@ -55,11 +55,13 @@ int main()
graph phi("@f! (R = 5)", "@a!", "@f!", alpha); graph phi("@f! (R = 5)", "@a!", "@f!", alpha);
phi.insert phi.insert
( (
"@f!&e!", new curve("@f!&e!", curve::curveStyle::CONTINUOUS, phie) "@f!&e!",
autoPtr<curve>::New("@f!&e!", curve::curveStyle::CONTINUOUS, phie)
); );
phi.insert phi.insert
( (
"@f!&c!", new curve("@f!&c!", curve::curveStyle::CONTINUOUS, phic) "@f!&c!",
autoPtr<curve>::New("@f!&c!", curve::curveStyle::CONTINUOUS, phic)
); );
phi.write("phi", "xmgr"); phi.write("phi", "xmgr");

View File

@ -42,7 +42,7 @@ Description
#include "zeroGradientFvPatchFields.H" #include "zeroGradientFvPatchFields.H"
#include "calculatedPointPatchFields.H" #include "calculatedPointPatchFields.H"
#include "pointConstraints.H" #include "pointConstraints.H"
#include "fvcDiv.H" #include "fvCFD.H"
using namespace Foam; using namespace Foam;

View File

@ -43,7 +43,7 @@ int main(int argc, char *argv[])
{ {
#include "setRootCase.H" #include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
#include "createMesh.H" #include "createPolyMesh.H"
Info<< "Reading distribute map\n" << endl; Info<< "Reading distribute map\n" << endl;

View File

@ -38,6 +38,7 @@ Description
#include "OFstream.H" #include "OFstream.H"
#include "mappedPolyPatch.H" #include "mappedPolyPatch.H"
#include "mappedFixedValueFvPatchFields.H" #include "mappedFixedValueFvPatchFields.H"
#include "fvCFD.H"
using namespace Foam; using namespace Foam;

View File

@ -94,7 +94,7 @@ int main(int argc, char *argv[])
{ {
#include "setRootCase.H" #include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
#include "createMesh.H" #include "createPolyMesh.H"
word procLabel = '[' + word(name(Pstream::myProcNo())) + "]-"; word procLabel = '[' + word(name(Pstream::myProcNo())) + "]-";

View File

@ -412,7 +412,7 @@ void testPointSync(const polyMesh& mesh, Random& rndGen)
{ {
if (isMasterPoint.test(pointi)) if (isMasterPoint.test(pointi))
{ {
nMasters.set(pointi); nMasters[pointi] = 1;
} }
} }
@ -488,7 +488,7 @@ void testEdgeSync(const polyMesh& mesh, Random& rndGen)
{ {
if (isMasterEdge.test(edgeI)) if (isMasterEdge.test(edgeI))
{ {
nMasters.set(edgeI); nMasters[edgeI] = 1;
} }
} }
@ -551,13 +551,13 @@ void testFaceSync(const polyMesh& mesh, Random& rndGen)
{ {
labelList nMasters(mesh.nFaces(), 0); labelList nMasters(mesh.nFaces(), 0);
Bitset isMasterFace(syncTools::getMasterFaces(mesh)); bitSet isMasterFace(syncTools::getMasterFaces(mesh));
forAll(isMasterFace, facei) forAll(isMasterFace, facei)
{ {
if (isMasterFace.test(facei)) if (isMasterFace.test(facei))
{ {
nMasters.set(facei); nMasters[facei] = 1;
} }
} }

View File

@ -30,6 +30,7 @@ Description
#include "Time.H" #include "Time.H"
#include "fvMesh.H" #include "fvMesh.H"
#include "wallDist.H" #include "wallDist.H"
#include "fvCFD.H"
using namespace Foam; using namespace Foam;