[cig-commits] r12053 - short/3D/PyLith/trunk/libsrc/topology
knepley at geodynamics.org
knepley at geodynamics.org
Thu May 29 08:00:05 PDT 2008
Author: knepley
Date: 2008-05-29 08:00:05 -0700 (Thu, 29 May 2008)
New Revision: 12053
Modified:
short/3D/PyLith/trunk/libsrc/topology/Distributor.cc
Log:
Do not distribute 'replacedCells' section
Modified: short/3D/PyLith/trunk/libsrc/topology/Distributor.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/topology/Distributor.cc 2008-05-29 14:04:18 UTC (rev 12052)
+++ short/3D/PyLith/trunk/libsrc/topology/Distributor.cc 2008-05-29 15:00:05 UTC (rev 12053)
@@ -69,7 +69,16 @@
distribution_type::distributeSection(coordinates, partition, renumbering, sendMeshOverlap, recvMeshOverlap, parallelCoordinates);
// Distribute other sections
if (origMesh->getRealSections()->size() > 1) {
- throw ALE::Exception("Need to distribute more real sections");
+ Obj<std::set<std::string> > names = origMesh->getRealSections();
+ int n = 0;
+
+ for(std::set<std::string>::const_iterator n_iter = names->begin(); n_iter != names->end(); ++n_iter) {
+ if (*n_iter == "coordinates") continue;
+ if (*n_iter == "replacedCells") continue;
+ std::cout << "ERROR: Did not distribute real section " << *n_iter << std::endl;
+ ++n;
+ }
+ if (n) {throw ALE::Exception("Need to distribute more real sections");}
}
if (origMesh->getIntSections()->size() > 0) {
Obj<std::set<std::string> > names = origMesh->getIntSections();
More information about the cig-commits
mailing list