Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
3b6027d1
Commit
3b6027d1
authored
Jun 14, 2018
by
mattijs
Browse files
ENH: test: make test apps compile. Fixes
#876
.
parent
3d5d3b84
Changes
18
Hide whitespace changes
Inline
Side-by-side
applications/test/HashTable2/Test-HashTable2.C
View file @
3b6027d1
...
...
@@ -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
;
...
...
applications/test/PackedList/Test-PackedList.C
View file @
3b6027d1
...
...
@@ -151,7 +151,7 @@ int main(int argc, char *argv[])
if
(
args
.
found
(
"info"
))
{
packLst
.
printInfo
(
Info
);
Info
<<
packLst
.
info
(
);
}
Info
<<
nl
;
...
...
applications/test/PackedList1/Test-PackedList1.C
View file @
3b6027d1
...
...
@@ -185,13 +185,13 @@ int main(int argc, char *argv[])
list1
.
resize
(
8
,
list1
.
max_value
);
report
(
list1
);
Info
<<
"
\n
test flip() function
\n
"
;
list1
.
flip
();
report
(
list1
);
//
Info<< "\ntest flip() function\n";
//
list1.flip();
//
report(list1);
Info
<<
"
\n
re-flip()
\n
"
;
list1
.
flip
();
report
(
list1
);
//
Info<< "\nre-flip()\n";
//
list1.flip();
//
report(list1);
Info
<<
"
\n
test set() function
\n
"
;
list1
.
set
(
1
,
5
);
...
...
applications/test/PatchEdgeFaceWave/Test-PatchEdgeFaceWave.C
View file @
3b6027d1
...
...
@@ -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
;
...
...
applications/test/PatchTools/Test-PatchTools.C
View file @
3b6027d1
...
...
@@ -205,7 +205,7 @@ int main(int argc, char *argv[])
#include
"setRootCase.H"
#include
"createTime.H"
#include
"createMesh.H"
#include
"create
Poly
Mesh.H"
const
word
patchName
=
args
[
1
];
label
patchi
=
mesh
.
boundaryMesh
().
findPatchID
(
patchName
);
...
...
applications/test/extendedStencil/Test-ExtendedStencil.C
View file @
3b6027d1
...
...
@@ -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"
...
...
applications/test/fieldDependency/Make/options
View file @
3b6027d1
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \
-lfiniteVolume
applications/test/fieldDependency/Test-fieldDependency.C
View file @
3b6027d1
...
...
@@ -29,6 +29,7 @@ Description
#include
"argList.H"
#include
"Time.H"
#include
"volFields.H"
#include
"fvCFD.H"
using
namespace
Foam
;
...
...
applications/test/fieldMapping/Test-fieldMapping.C
View file @
3b6027d1
...
...
@@ -38,7 +38,7 @@ Description
#include
"removeFaces.H"
#include
"mapPolyMesh.H"
#include
"polyTopoChange.H"
#include
"fv
cDiv
.H"
#include
"fv
CFD
.H"
#include
"zeroGradientFvPatchFields.H"
#include
"Random.H"
...
...
applications/test/findCell-octree/Test-findCell-octree.C
View file @
3b6027d1
...
...
@@ -29,6 +29,7 @@ License
#include
"indexedOctree.H"
#include
"treeDataCell.H"
#include
"OFstream.H"
#include
"fvCFD.H"
using
namespace
Foam
;
...
...
applications/test/findSphereFeatureEdges-octree/Test-findSphereFeatureEdges-octree.C
View file @
3b6027d1
...
...
@@ -30,6 +30,7 @@ License
#include
"treeDataEdge.H"
#include
"OFstream.H"
#include
"extendedFeatureEdgeMesh.H"
#include
"fvCFD.H"
using
namespace
Foam
;
...
...
applications/test/graph/Test-graph.C
View file @
3b6027d1
...
...
@@ -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"
);
...
...
applications/test/hexRef8/Test-hexRef8.C
View file @
3b6027d1
...
...
@@ -42,7 +42,7 @@ Description
#include
"zeroGradientFvPatchFields.H"
#include
"calculatedPointPatchFields.H"
#include
"pointConstraints.H"
#include
"fv
cDiv
.H"
#include
"fv
CFD
.H"
using
namespace
Foam
;
...
...
applications/test/mapDistributePolyMesh/Test-mapDistributePolyMesh.C
View file @
3b6027d1
...
...
@@ -43,7 +43,7 @@ int main(int argc, char *argv[])
{
#include
"setRootCase.H"
#include
"createTime.H"
#include
"createMesh.H"
#include
"create
Poly
Mesh.H"
Info
<<
"Reading distribute map
\n
"
<<
endl
;
...
...
applications/test/mappedPatch/Test-MappedPatch.C
View file @
3b6027d1
...
...
@@ -38,6 +38,7 @@ Description
#include
"OFstream.H"
#include
"mappedPolyPatch.H"
#include
"mappedFixedValueFvPatchFields.H"
#include
"fvCFD.H"
using
namespace
Foam
;
...
...
applications/test/router/Test-processorRouter.C
View file @
3b6027d1
...
...
@@ -94,7 +94,7 @@ int main(int argc, char *argv[])
{
#include
"setRootCase.H"
#include
"createTime.H"
#include
"createMesh.H"
#include
"create
Poly
Mesh.H"
word
procLabel
=
'['
+
word
(
name
(
Pstream
::
myProcNo
()))
+
"]-"
;
...
...
applications/test/syncTools/Test-syncTools.C
View file @
3b6027d1
...
...
@@ -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
);
B
it
s
et
isMasterFace
(
syncTools
::
getMasterFaces
(
mesh
));
b
it
S
et
isMasterFace
(
syncTools
::
getMasterFaces
(
mesh
));
forAll
(
isMasterFace
,
facei
)
{
if
(
isMasterFace
.
test
(
facei
))
{
nMasters
.
set
(
facei
)
;
nMasters
[
facei
]
=
1
;
}
}
...
...
applications/test/wallDist/Test-wallDist.C
View file @
3b6027d1
...
...
@@ -30,6 +30,7 @@ Description
#include
"Time.H"
#include
"fvMesh.H"
#include
"wallDist.H"
#include
"fvCFD.H"
using
namespace
Foam
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment