[cig-commits] r8959 - cs/benchmark/cigma/trunk/src/tests
luis at geodynamics.org
luis at geodynamics.org
Wed Dec 19 12:08:13 PST 2007
Author: luis
Date: 2007-12-19 12:08:13 -0800 (Wed, 19 Dec 2007)
New Revision: 8959
Modified:
cs/benchmark/cigma/trunk/src/tests/TestMeshPart.cpp
Log:
Changed TestMeshPart to use functions from Misc.h
Modified: cs/benchmark/cigma/trunk/src/tests/TestMeshPart.cpp
===================================================================
--- cs/benchmark/cigma/trunk/src/tests/TestMeshPart.cpp 2007-12-19 20:08:11 UTC (rev 8958)
+++ cs/benchmark/cigma/trunk/src/tests/TestMeshPart.cpp 2007-12-19 20:08:13 UTC (rev 8959)
@@ -7,12 +7,14 @@
#include "../Numeric.h"
#include "../TextWriter.h"
#include "../VtkUgReader.h"
-#include "../VtkMeshPart.h"
+#include "../VtkUgMeshPart.h"
+#include "../Misc.h"
using namespace cigma;
// ---------------------------------------------------------------------------
+/*
inline double pick_from_interval(double a, double b)
{
return a + (b-a) * rand()/(RAND_MAX + 1.0);
@@ -26,7 +28,7 @@
assert(minpt[i] <= maxpt[i]);
x[i] = pick_from_interval(minpt[i], maxpt[i]);
}
-}
+}*/
// ---------------------------------------------------------------------------
@@ -47,7 +49,7 @@
int nel, ndofs;
reader->get_connectivity(&connect, &nel, &ndofs);
- VtkMeshPart *meshPart = new VtkMeshPart();
+ VtkUgMeshPart *meshPart = new VtkUgMeshPart();
meshPart->set_coordinates(coords, nno, nsd);
meshPart->set_connectivity(connect, nel, ndofs);
@@ -60,7 +62,7 @@
std::cout << "maxpt = " << maxpt[0] << " " << maxpt[1] << " " << maxpt[2] << std::endl;
int i;
- int npts = 100;
+ int npts = 20;;
double *points = new double[npts * nsd];
for (i = 0; i < npts; i++)
{
More information about the cig-commits
mailing list