[MOAB-dev] commit/MOAB: iulian07: default value for PARALLEL_PARTITION tag
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Sep 30 08:23:50 CDT 2013
1 new commit in MOAB:
https://bitbucket.org/fathomteam/moab/commits/7aa67fe5d658/
Changeset: 7aa67fe5d658
Branch: master
User: iulian07
Date: 2013-09-30 15:16:54
Summary: default value for PARALLEL_PARTITION tag
both visit and mbpart like to have a default value for this tag.
Otherwise, visit would not be able to "see" parallel partition in an h5m file.
mbpart would also fail to repartition. mbpart would have been easy to fix, but
visit is a different story. So, it is better to have a default value.
This tag gets created right now either by mbpart, or by "read_nc"-like reads in
parallel (CAM, FV or MPAS reads on more processors)
Affected #: 1 file
diff --git a/src/parallel/ParallelComm.cpp b/src/parallel/ParallelComm.cpp
index 68b2eb6..f41f4e4 100644
--- a/src/parallel/ParallelComm.cpp
+++ b/src/parallel/ParallelComm.cpp
@@ -7781,9 +7781,10 @@ ErrorCode ParallelComm::post_irecv(std::vector<unsigned int>& shared_procs,
Tag ParallelComm::partition_tag()
{
if (!partitionTag) {
+ int dum_id = -1;
ErrorCode result = mbImpl->tag_get_handle(PARALLEL_PARTITION_TAG_NAME,
1, MB_TYPE_INTEGER, partitionTag,
- MB_TAG_SPARSE|MB_TAG_CREAT);
+ MB_TAG_SPARSE|MB_TAG_CREAT, &dum_id);
if (MB_SUCCESS != result)
return 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