mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: test: make test apps compile. Fixes #876.
This commit is contained in:
@ -74,7 +74,7 @@ int main(int argc, char *argv[])
|
||||
<< "toc: " << table4.toc() << endl;
|
||||
|
||||
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;
|
||||
|
||||
|
||||
@ -151,7 +151,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (args.found("info"))
|
||||
{
|
||||
packLst.printInfo(Info);
|
||||
Info<< packLst.info();
|
||||
}
|
||||
|
||||
Info<< nl;
|
||||
|
||||
@ -185,13 +185,13 @@ int main(int argc, char *argv[])
|
||||
list1.resize(8, list1.max_value);
|
||||
report(list1);
|
||||
|
||||
Info<< "\ntest flip() function\n";
|
||||
list1.flip();
|
||||
report(list1);
|
||||
//Info<< "\ntest flip() function\n";
|
||||
//list1.flip();
|
||||
//report(list1);
|
||||
|
||||
Info<< "\nre-flip()\n";
|
||||
list1.flip();
|
||||
report(list1);
|
||||
//Info<< "\nre-flip()\n";
|
||||
//list1.flip();
|
||||
//report(list1);
|
||||
|
||||
Info<< "\ntest set() function\n";
|
||||
list1.set(1, 5);
|
||||
|
||||
@ -29,10 +29,10 @@ Description
|
||||
#include "argList.H"
|
||||
#include "Time.H"
|
||||
#include "fvMesh.H"
|
||||
#include "volFields.H"
|
||||
#include "PatchEdgeFaceWave.H"
|
||||
#include "patchEdgeFaceInfo.H"
|
||||
#include "patchPatchDist.H"
|
||||
#include "fvCFD.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
|
||||
@ -205,7 +205,7 @@ int main(int argc, char *argv[])
|
||||
#include "setRootCase.H"
|
||||
#include "createTime.H"
|
||||
|
||||
#include "createMesh.H"
|
||||
#include "createPolyMesh.H"
|
||||
|
||||
const word patchName = args[1];
|
||||
label patchi = mesh.boundaryMesh().findPatchID(patchName);
|
||||
|
||||
@ -33,7 +33,7 @@ Description
|
||||
#include "fvMesh.H"
|
||||
#include "volFields.H"
|
||||
#include "Time.H"
|
||||
//#include "mapDistribute.H"
|
||||
#include "fvCFD.H"
|
||||
#include "OFstream.H"
|
||||
#include "meshTools.H"
|
||||
//#include "FECCellToFaceStencil.H"
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
EXE_INC = \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude
|
||||
|
||||
EXE_LIBS = \
|
||||
-lfiniteVolume
|
||||
|
||||
@ -29,6 +29,7 @@ Description
|
||||
#include "argList.H"
|
||||
#include "Time.H"
|
||||
#include "volFields.H"
|
||||
#include "fvCFD.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@ Description
|
||||
#include "removeFaces.H"
|
||||
#include "mapPolyMesh.H"
|
||||
#include "polyTopoChange.H"
|
||||
#include "fvcDiv.H"
|
||||
#include "fvCFD.H"
|
||||
#include "zeroGradientFvPatchFields.H"
|
||||
#include "Random.H"
|
||||
|
||||
|
||||
@ -29,6 +29,7 @@ License
|
||||
#include "indexedOctree.H"
|
||||
#include "treeDataCell.H"
|
||||
#include "OFstream.H"
|
||||
#include "fvCFD.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
|
||||
@ -30,6 +30,7 @@ License
|
||||
#include "treeDataEdge.H"
|
||||
#include "OFstream.H"
|
||||
#include "extendedFeatureEdgeMesh.H"
|
||||
#include "fvCFD.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
|
||||
@ -55,11 +55,13 @@ int main()
|
||||
graph phi("@f! (R = 5)", "@a!", "@f!", alpha);
|
||||
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
|
||||
(
|
||||
"@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");
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ Description
|
||||
#include "zeroGradientFvPatchFields.H"
|
||||
#include "calculatedPointPatchFields.H"
|
||||
#include "pointConstraints.H"
|
||||
#include "fvcDiv.H"
|
||||
#include "fvCFD.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
#include "setRootCase.H"
|
||||
#include "createTime.H"
|
||||
#include "createMesh.H"
|
||||
#include "createPolyMesh.H"
|
||||
|
||||
Info<< "Reading distribute map\n" << endl;
|
||||
|
||||
|
||||
@ -38,6 +38,7 @@ Description
|
||||
#include "OFstream.H"
|
||||
#include "mappedPolyPatch.H"
|
||||
#include "mappedFixedValueFvPatchFields.H"
|
||||
#include "fvCFD.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
|
||||
@ -94,7 +94,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
#include "setRootCase.H"
|
||||
#include "createTime.H"
|
||||
#include "createMesh.H"
|
||||
#include "createPolyMesh.H"
|
||||
|
||||
word procLabel = '[' + word(name(Pstream::myProcNo())) + "]-";
|
||||
|
||||
|
||||
@ -412,7 +412,7 @@ void testPointSync(const polyMesh& mesh, Random& rndGen)
|
||||
{
|
||||
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))
|
||||
{
|
||||
nMasters.set(edgeI);
|
||||
nMasters[edgeI] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@ -551,13 +551,13 @@ void testFaceSync(const polyMesh& mesh, Random& rndGen)
|
||||
{
|
||||
labelList nMasters(mesh.nFaces(), 0);
|
||||
|
||||
Bitset isMasterFace(syncTools::getMasterFaces(mesh));
|
||||
bitSet isMasterFace(syncTools::getMasterFaces(mesh));
|
||||
|
||||
forAll(isMasterFace, facei)
|
||||
{
|
||||
if (isMasterFace.test(facei))
|
||||
{
|
||||
nMasters.set(facei);
|
||||
nMasters[facei] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -30,6 +30,7 @@ Description
|
||||
#include "Time.H"
|
||||
#include "fvMesh.H"
|
||||
#include "wallDist.H"
|
||||
#include "fvCFD.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user