Commit f96da515 authored by Siqi Ling's avatar Siqi Ling
Browse files

small change

parent 17edda1c
......@@ -22,6 +22,7 @@
#include "parallel/MeshPartitioner.h"
#include "io/ArhReader.h"
#include "io/Arh2Reader.h"
#include "io/Arh3Reader.h"
#include "Mesh.h"
#include "Traverse.h"
#include "Serializer.h"
......@@ -90,7 +91,12 @@ namespace AMDiS { namespace Parallel {
}
if (partitioningArhBased) {
MSG("Read Arh partitioning files: %s\n", arhFile.c_str());
int nProc = io::Arh2Reader::readMetaFromArh(arhFile, mapElInRank, arhElCodeSize);
int nProc = -1;
if (io::Arh2Reader::isReadable(arhFile + ".arh"))
nProc = io::Arh2Reader::readMetaFromArh(arhFile, mapElInRank, arhElCodeSize);
else if (io::Arh3Reader::isReadable(arhFile + ".arh"))
nProc = io::Arh3Reader::readMetaFromArh(arhFile, mapElInRank, arhElCodeSize);
if (nProc != mpiSize)
useInitialPartitioning = false;
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment