[MOAB-dev] commit/MOAB: danwu: Comment out the code to check the number of elements in ScdNCHelper::check_existing_mesh(), as it does not work at this time when ghosting is used.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Nov 12 12:22:50 CST 2013
1 new commit in MOAB:
https://bitbucket.org/fathomteam/moab/commits/3a4a1a74b552/
Changeset: 3a4a1a74b552
Branch: master
User: danwu
Date: 2013-11-12 19:22:28
Summary: Comment out the code to check the number of elements in ScdNCHelper::check_existing_mesh(), as it does not work at this time when ghosting is used.
Affected #: 1 file
diff --git a/src/io/NCHelper.cpp b/src/io/NCHelper.cpp
index 1465db2..898edcf 100644
--- a/src/io/NCHelper.cpp
+++ b/src/io/NCHelper.cpp
@@ -790,16 +790,19 @@ ErrorCode ScdNCHelper::check_existing_mesh() {
// Check the number of elements too
int num_elems;
- rval = mbImpl->get_number_entities_by_dimension(_fileSet, (-1 == lDims[2] ? 2 : 3), num_elems);
+ rval = mbImpl->get_number_entities_by_dimension(_fileSet, (-1 == lCDims[2] ? 2 : 3), num_elems);
ERRORR(rval, "Trouble getting number of elements.");
+ /*
// Check against parameters
+ // When ghosting is used, this check might fail (to be updated later)
if (num_elems > 0) {
int expected_elems = (lCDims[3] - lCDims[0] + 1) * (lCDims[4] - lCDims[1] + 1) * (-1 == lCDims[2] ? 1 : (lCDims[5] - lCDims[2] + 1));
if (num_elems != expected_elems) {
ERRORR(MB_FAILURE, "Number of elements doesn't match.");
}
}
+ */
return MB_SUCCESS;
}
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