Skip to content
Snippets Groups Projects
Commit 2a01f492 authored by Franjo's avatar Franjo
Browse files

Updates of the testing interface for DynList

parent 582dac29
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ EXE_INC = \ ...@@ -5,7 +5,7 @@ EXE_INC = \
-I../../meshLibrary/lnInclude -I../../meshLibrary/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-L$(FOAM_USER_LIBBIN) \ -L$(FOAM_USER_LIBBIN) -g -ggdb -DFULLDEBUG -O0 \
-lmeshLibrary \ -lmeshLibrary \
-ledgeMesh \ -ledgeMesh \
-ltriSurface \ -ltriSurface \
......
...@@ -26,15 +26,9 @@ Description ...@@ -26,15 +26,9 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "argList.H" #include "DynList.H"
#include "Time.H" #include "scalar.H"
#include "polyMeshGenModifier.H" #include "vector.H"
#include "meshSurfaceOptimizer.H"
#include "triSurf.H"
#include "meshOctree.H"
#include "meshOctreeCreator.H"
#include "meshSurfaceEngine.H"
#include "labelledTri.H"
using namespace Foam; using namespace Foam;
...@@ -42,6 +36,36 @@ using namespace Foam; ...@@ -42,6 +36,36 @@ using namespace Foam;
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
DynList<label> a;
DynList<label> b(100);
DynList<scalar> c(1000, 0.1);
List<vector> v(1000, vector::zero);
DynList<vector> d(v);
Info << "b " << b << endl;
c.append(0.2);
b.appendIfNotIn(3);
c(1020) = 0.5;
Info << "c " << c << endl;
Info << "d " << d << endl;
DynList<DynList<label> > e;
e.setSize(5);
forAll(e, i)
e[i].setSize(18);
Info << "e " << e << endl;
c.setSize(5);
c.shrink();
Info << "\nEnd" << endl;
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment