[MOAB-dev] commit/MOAB: danwu: Updated unit test write_nc for serial MOAB, which failed with "PARALLEL option not valid, this instance compiled for serial execution".

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Apr 30 15:40:27 CDT 2014


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/967a5ee16b1b/
Changeset:   967a5ee16b1b
Branch:      master
User:        danwu
Date:        2014-04-30 22:40:13
Summary:     Updated unit test write_nc for serial MOAB, which failed with "PARALLEL option not valid, this instance compiled for serial execution".

Affected #:  1 file

diff --git a/test/io/write_nc.cpp b/test/io/write_nc.cpp
index 54d16d5..2dc8e9a 100644
--- a/test/io/write_nc.cpp
+++ b/test/io/write_nc.cpp
@@ -111,13 +111,20 @@ void test_eul_read_write_T()
   ErrorCode rval = mb.create_meshset(MESHSET_SET, set);
   CHECK_ERR(rval);
 
+#ifdef USE_MPI
   read_opts = "PARALLEL=READ_PART;PARTITION;PARALLEL_RESOLVE_SHARED_ENTS;PARALLEL_GHOSTS=2.0.1;PARTITION_METHOD=SQIJ;VARIABLE=";
   rval = mb.load_file(example_eul, &set, read_opts.c_str());
   CHECK_ERR(rval);
 
-  read_opts = "PARALLEL=READ_PART;PARTITION;PARTITION_METHOD=SQIJ;VARIABLE=T,gw;NOMESH;";
+  read_opts = "PARALLEL=READ_PART;PARTITION;PARTITION_METHOD=SQIJ;VARIABLE=T,gw;NOMESH";
+  rval = mb.load_file(example_eul, &set, read_opts.c_str());
+  CHECK_ERR(rval);
+#else
+  read_opts += ";DEBUG_IO=0;VARIABLE=T,gw";
   rval = mb.load_file(example_eul, &set, read_opts.c_str());
   CHECK_ERR(rval);
+#endif
+
   // Write variables T and gw
   std::string write_opts;
   write_opts = std::string(";;VARIABLE=T,gw;DEBUG_IO=0");

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