[MOAB-dev] commit/MOAB: iulian07: correct the partest test

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Dec 17 17:10:23 CST 2013


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/3da2f0b74749/
Changeset:   3da2f0b74749
Branch:      master
User:        iulian07
Date:        2013-12-18 00:08:39
Summary:     correct the partest test

specify correct path for input file
use correct parallel options
it works now in parallel too, with mpiexec -np 2 partest, for example

Affected #:  1 file

diff --git a/itaps/imesh/partest.cpp b/itaps/imesh/partest.cpp
index 0f46172..52ba517 100644
--- a/itaps/imesh/partest.cpp
+++ b/itaps/imesh/partest.cpp
@@ -1,4 +1,4 @@
-#include <iostream>
+
 #include <stdio.h>
 #include <string.h>
 #include "moab_mpi.h"
@@ -7,6 +7,8 @@
 
 #define IMESH_ASSERT(ierr) if (ierr!=0) printf("imesh assert\n");
 #define IMESH_NULL 0
+#define STRINGIFY_(X) #X
+#define STRINGIFY(X) STRINGIFY_(X)
 
 int main(int argc, char* argv[]){
   MPI_Init(&argc, &argv);
@@ -26,8 +28,11 @@ int main(int argc, char* argv[]){
   iMeshP_createPartitionAll(imesh, MPI_COMM_WORLD, &partn, &ierr);
   IMESH_ASSERT(ierr);
 
-  const char options[] = ";PARTITION=MATERIAL_SET";
-  const char filename[] = "64bricks_1mhex.h5m";
+  const char options[] = " moab:PARALLEL=READ_PART "
+                         " moab:PARTITION=PARALLEL_PARTITION "
+                         " moab:PARALLEL_RESOLVE_SHARED_ENTS "
+                         " moab:PARTITION_DISTRIBUTE ";
+  const char * filename = STRINGIFY(MESHDIR) "/64bricks_1khex.h5m";;
 
   iMeshP_loadAll(imesh,
               partn,

Repository URL: https://bitbucket.org/fathomteam/moab/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the moab-dev mailing list