[MOAB-dev] commit/MOAB: danwu: Modify the check of cells.psize(). If MOAB is not compiled parallel, there will be no gaps between the face sequences for different cell groups

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Jul 2 13:19:10 CDT 2013


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/45649ded4a38/
Changeset:   45649ded4a38
Branch:      master
User:        danwu
Date:        2013-07-02 20:17:51
Summary:     Modify the check of cells.psize(). If MOAB is not compiled parallel, there will be no gaps between the face sequences for different cell groups

Affected #:  1 file

diff --git a/test/io/read_mpas_nc.cpp b/test/io/read_mpas_nc.cpp
index 4ab8568..ffd168b 100644
--- a/test/io/read_mpas_nc.cpp
+++ b/test/io/read_mpas_nc.cpp
@@ -120,7 +120,14 @@ void test_read_all()
   rval = mb.get_entities_by_type(0, MBPOLYGON, cells);
   assert(rval == MB_SUCCESS);
   CHECK_EQUAL((size_t)642, cells.size());
+#ifdef USE_MPI
+  // If MOAB is compiled parallel, sequence size requested are increased
+  // by a factor of 1.5, to allow for ghosts. This will introduce a gap
+  // between the two face sequences.
   CHECK_EQUAL((size_t)2, cells.psize());
+#else
+  CHECK_EQUAL((size_t)1, cells.psize());
+#endif
 
   // Check ke tag values on first pentagon and first hexagon
   EntityHandle cell_ents[] = {cells[0], cells[12]};
@@ -161,7 +168,7 @@ void test_read_onetimestep()
   CHECK_ERR(rval);
 
   opts += std::string(";TIMESTEP=1");
-  rval = mb.load_file( example, NULL, opts.c_str());
+  rval = mb.load_file(example, NULL, opts.c_str());
   CHECK_ERR(rval);
 
   // Check for proper tags

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