Skip to content

Commit

Permalink
Update pyrandaMPI.py custom demain decomp
Browse files Browse the repository at this point in the history
Fixing logical statements
  • Loading branch information
flow-phys committed May 27, 2023
1 parent 3fc79af commit 7d7e8ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyranda/pyrandaMPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def __init__(self,mesh,comm=None):
self.filter_type = ('compact', 'compact', 'compact')

# Check if we're doing a manual decomposition
doManualDecompose = ( (meshOptions['pn'][0] >= 1) or (self.nx == 1) and
(meshOptions['pn'][1] >= 1) or (self.ny == 1) and
(meshOptions['pn'][2] >= 1) or (self.nz == 1) )
doManualDecompose = ( ((meshOptions['pn'][0] >= 1) or (self.nx == 1)) and
((meshOptions['pn'][1] >= 1) or (self.ny == 1)) and
((meshOptions['pn'][2] >= 1) or (self.nz == 1)) )

if (doManualDecompose == True):
# Decompose based on user-supplied arguments
Expand Down

0 comments on commit 7d7e8ee

Please sign in to comment.