Skip to content

Commit

Permalink
which English word is not define as a macro in MSVC?
Browse files Browse the repository at this point in the history
  • Loading branch information
gentryx committed Feb 21, 2017
1 parent 3d8a424 commit 08ec5f2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,23 +177,23 @@ class DistributedPTScotchUnstructuredPartition : public Partition<DIM>
nullptr, // more optional data/hints
nullptr); //
if (error) {
LOG(ERROR, "SCOTCH_graphBuild error: " << error);
LOG(FAULT, "SCOTCH_graphBuild error: " << error);
}

error = SCOTCH_dgraphCheck(&graph);
if (error) {
LOG(ERROR, "SCOTCH_graphCheck error: " << error);
LOG(FAULT, "SCOTCH_graphCheck error: " << error);
}

SCOTCH_Strat *straptr = SCOTCH_stratAlloc();
error = SCOTCH_stratInit(straptr);
if (error) {
LOG(ERROR, "SCOTCH_stratInit error: " << error);
LOG(FAULT, "SCOTCH_stratInit error: " << error);
}

error = SCOTCH_dgraphPart(&graph, numPartitions, straptr,& indices[0]);
if (error) {
LOG(ERROR, "SCOTCH_graphMap error: " << error);
LOG(FAULT, "SCOTCH_graphMap error: " << error);
}

SCOTCH_dgraphExit(&graph);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,23 +101,23 @@ class PTScotchUnstructuredPartition : public Partition<DIM>
&edgetabGra[0],
nullptr);
if (error) {
LOG(ERROR, "SCOTCH_graphBuild error: " << error);
LOG(FAULT, "SCOTCH_graphBuild error: " << error);
}

error = SCOTCH_graphCheck(&graph);
if (error) {
LOG(ERROR, "SCOTCH_graphCheck error: " << error);
LOG(FAULT, "SCOTCH_graphCheck error: " << error);
}

SCOTCH_Strat *straptr = SCOTCH_stratAlloc();
error = SCOTCH_stratInit(straptr);
if (error) {
LOG(ERROR, "SCOTCH_stratInit error: " << error);
LOG(FAULT, "SCOTCH_stratInit error: " << error);
}

error = SCOTCH_graphPart(&graph, weights.size(), straptr,& indices[0]);
if (error) {
LOG(ERROR, "SCOTCH_graphMap error: " << error);
LOG(FAULT, "SCOTCH_graphMap error: " << error);
}

SCOTCH_graphExit(&graph);
Expand Down
2 changes: 1 addition & 1 deletion src/libgeodecomp/io/logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace LibGeoDecomp {
class Logger {
public:
static const int FATAL = 0;
static const int ERROR = 1;
static const int FAULT = 1;
static const int WARN = 2;
static const int INFO = 3;
static const int DBG = 4;
Expand Down
2 changes: 1 addition & 1 deletion src/libgeodecomp/loadbalancer/oozebalancer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ OozeBalancer::WeightVec OozeBalancer::balance(

WeightVec ret = equalize(newLoads);
if (sum(weights) != sum(ret)) {
LOG(ERROR, "OozeBalancer::balance() failed\n"
LOG(FAULT, "OozeBalancer::balance() failed\n"
<< " weights.sum() = " << sum(weights) << "\n"
<< " ret.sum() = " << sum(ret) << "\n"
<< " expectedOptimal.sum() = " << sum(expectedOptimal) << "\n"
Expand Down
2 changes: 1 addition & 1 deletion src/libgeodecomp/storage/neighborhoodadapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class NeighborhoodAdapter
}
}

LOG(ERROR, "could not find id " << id << " in neighborhood");
LOG(FAULT, "could not find id " << id << " in neighborhood");
throw std::logic_error("id not found");
}

Expand Down

0 comments on commit 08ec5f2

Please sign in to comment.