Skip to content
Snippets Groups Projects
Commit e2814a66 authored by Rafael Ravedutti's avatar Rafael Ravedutti
Browse files

Fix domain partitioning enum


Signed-off-by: default avatarRafael Ravedutti <rafaelravedutti@gmail.com>
parent daeb592d
Branches
Tags
No related merge requests found
......@@ -21,6 +21,8 @@ void PairsSimulation::initDomain(
} else if(dom_part_type == RegularXY) {
const int flags[] = {1, 1, 0};
dom_part = new Regular6DStencil(xmin, xmax, ymin, ymax, zmin, zmax, flags);
} else if(dom_part_type == BlockForest) {
dom_part = new BlockForest(xmin, xmax, ymin, ymax, zmin, zmax);
} else {
PAIRS_EXCEPTION("Domain partitioning type not implemented!\n");
}
......
......@@ -46,9 +46,9 @@ enum Timers {
};
enum DomainPartitioners {
Regular = 0,
RegularXY = 1,
BoxList = 2,
RegularPartitioning = 0,
RegularXYPartitioning = 1,
BlockForestPartitioning = 2
};
#ifdef DEBUG
......
......@@ -5,7 +5,7 @@ class DomainPartitioners:
BlockForest = 2
def c_keyword(layout):
return "Regular" if layout == DomainPartitioners.Regular else \
"RegularXY" if layout == DomainPartitioners.RegularXY else \
"BlockForest" if layout == DomainPartitioners.BlockForest else \
return "RegularPartitioning" if layout == DomainPartitioners.Regular else \
"RegularXYPartitioning" if layout == DomainPartitioners.RegularXY else \
"BlockForestPartitioning" if layout == DomainPartitioners.BlockForest else \
"Invalid"
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