Commit efe968b7 authored by reinarz's avatar reinarz
Browse files

is checks object identity replaced by ==

parent 5fbd4200
......@@ -132,16 +132,16 @@ class MeshInfoTool(Tool):
self.log.info("---------------------------------------------------------------------------------------------")
# domain decomposition recommendations
if (info.boundingBoxOutsideCellsLeft is 0 and
info.boundingBoxOutsideCellsRight is 0) or\
(info.boundingBoxOutsideCellsLeft is 1 and\
info.boundingBoxOutsideCellsRight is 1):
if (info.boundingBoxOutsideCellsLeft == 0 and
info.boundingBoxOutsideCellsRight == 0) or\
(info.boundingBoxOutsideCellsLeft == 1 and\
info.boundingBoxOutsideCellsRight == 1):
boundingBoxCells = 3**info.boundingBoxMeshLevel
ranks = [[] for i in range(1,info.boundingBoxMeshLevel)]
# count inside cells in each coordinate direction
insideCells = []
padding = 0 if info.boundingBoxOutsideCellsLeft is 0 else 2
padding = 0 if info.boundingBoxOutsideCellsLeft == 0 else 2
for d in range(0,dim):
insideCells.append(int(round(info.domainSize[d]/info.boundingBoxMeshSize)))
for i in range(1,info.boundingBoxMeshLevel):
......
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