def initialize(self, application): BaseSolver.initialize(self, application) # StGermain stuff self._dictionary = application._dictionary self.communicator = application.solverCommunicator if not application._context: application._context = application.BuildContext() self._context = application._context # StGermain build... required now... as in the coupled case we control the coupling-boundary and it needs to be # prepared first. Also The geometry needs to be set. self._context.Construct() self._context.Build() self._context.Initialise() # Coupler stuff try: application.inventory.coupler except AttributeError: pass else: self.myPlus = application.myPlus self.remotePlus = application.remotePlus self.exchanger = application.exchanger self.coupler = application.inventory.coupler if self.coupler: self.coupler.initialize(self) return
def initialize( self, application ): BaseSolver.initialize( self, application ) # StGermain stuff self._dictionary = application._dictionary self.communicator = application.solverCommunicator if not application._context: application._context = application.BuildContext() self._context = application._context # StGermain build... required now... as in the coupled case we control the coupling-boundary and it needs to be # prepared first. Also The geometry needs to be set. self._context.Construct() self._context.Build() self._context.Initialise() # Coupler stuff try: application.inventory.coupler except AttributeError: pass else: self.myPlus = application.myPlus self.remotePlus = application.remotePlus self.exchanger = application.exchanger self.coupler = application.inventory.coupler if self.coupler: self.coupler.initialize( self ) return