Periodic BC now working with domain decomposition again.

This commit is contained in:
Martin Lilleeng Sætra
2022-05-09 13:50:59 +00:00
parent b4d204c9c9
commit e5a8486501
3 changed files with 40 additions and 49 deletions

View File

@@ -156,10 +156,10 @@ class SHMEMGrid(object):
return grid
class SHMEMSimulatorGroup(Simulator.BaseSimulator):
class SHMEMSimulatorGroup(object):
"""
Class which handles communication and synchronization between simulators in different
contexts (presumably on different GPUs)
contexts (typically on different GPUs)
"""
def __init__(self, sims, grid):
self.logger = logging.getLogger(__name__)
@@ -175,6 +175,9 @@ class SHMEMSimulatorGroup(Simulator.BaseSimulator):
# SHMEMSimulators that have BaseSimulator as a superclass.
#
# This would also eliminate the need for all the array bookkeeping in this class.
#
CONT HERE! Model shmemTesting after mpiTesting and divide existing functionality between SHMEMSimulatorGroup and SHMEMSimulator
autotuner = sims[0].context.autotuner
sims[0].context.autotuner = None
boundary_conditions = sims[0].getBoundaryConditions()