[MOAB-dev] commit/MOAB: danwu: Removed some compiler warnings on unused variables for unit test gcrm_par.cpp, and added gcrm_par to ignore.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue May 13 14:40:35 CDT 2014


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/53009bd1d8ae/
Changeset:   53009bd1d8ae
Branch:      master
User:        danwu
Date:        2014-05-13 21:40:09
Summary:     Removed some compiler warnings on unused variables for unit test gcrm_par.cpp, and added gcrm_par to ignore.

Affected #:  2 files

diff --git a/.gitignore b/.gitignore
index e2ba6f4..073629d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -187,6 +187,7 @@ test/obb/obb_time
 test/obb/obb_tree_tool
 test/obb_test
 test/oldinc/test_oldinc
+test/parallel/gcrm_par
 test/parallel/*.h5m
 test/parallel/mbparallelcomm_test
 test/parallel/mhdf_parallel

diff --git a/test/parallel/gcrm_par.cpp b/test/parallel/gcrm_par.cpp
index e9ff71d..83e89a6 100644
--- a/test/parallel/gcrm_par.cpp
+++ b/test/parallel/gcrm_par.cpp
@@ -281,8 +281,10 @@ void read_mesh_parallel(bool rcbzoltan, bool no_mixed_elements)
   CHECK_ERR(rval);
 
   ParallelComm* pcomm = ParallelComm::get_pcomm(&mb, 0);
+#if 0
   int procs = pcomm->proc_config().proc_size();
   int rank = pcomm->proc_config().proc_rank();
+#endif
 
   rval = pcomm->check_all_shared_handles();
   CHECK_ERR(rval);
@@ -292,8 +294,9 @@ void read_mesh_parallel(bool rcbzoltan, bool no_mixed_elements)
   rval = mb.get_entities_by_type(0, MBVERTEX, local_verts);
   CHECK_ERR(rval);
 
-  int verts_num = local_verts.size();
 #if 0
+  int verts_num = local_verts.size();
+
   if (2 == procs) {
     if (rcbzoltan) {
       if (0 == rank)

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