print error message and exit if no partitioning info given for current world size

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@2660 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
akva
2014-01-09 09:34:36 +00:00
committed by Knut Morten Okstad
parent 273a10d5fd
commit 9738e2f78b

View File

@@ -808,6 +808,12 @@ bool SIMbase::preprocess (const IntVec& ignored, bool fixDup)
return false;
}
if (nProc > 1 && myPatches.size() == 0) {
std::cerr << "No partitioning information for " <<
nProc << " processors found" << std::endl;
return false;
}
static int substep = 10;
this->printHeading(substep);