def launch(self, application): Solver.launch(self, application) # verify the machine layout layout = application.layout rank = layout.rank communicator = layout.communicator if not communicator: import journal journal.error(self.name).log("null communicator") return if communicator.size > 1: import journal journal.error(self.name).log("this is a single processor solver") return # save the communicator info self._fluidServer = rank self._solidServer = (rank + 1) % 2 self.coupler = application.coupler # initial boundary synchronization with the fluid if self.inventory.syncOnInit: self.applyBoundaryConditions() else: raise "pulse requires options.syncBoundaryInitialization=true" from pyre.units.SI import second t, step = 0.0*second, 0 return (t, step)
def launch(self, application): Solver.launch(self, application) # verify the machine layout layout = application.layout rank = layout.rank communicator = layout.communicator if not communicator: import journal journal.error(self.name).log("null communicator") return if communicator.size > 1: import journal journal.error(self.name).log("this is a single processor solver") return # save the communicator info self._fluidServer = rank self._solidServer = (rank + 1) % 2 self.coupler = application.coupler # initial boundary synchronization with the fluid if self.inventory.syncOnInit: self.applyBoundaryConditions() else: raise "pulse requires options.syncBoundaryInitialization=true" from pyre.units.SI import second t, step = 0.0 * second, 0 return (t, step)
def launch(self, application): BaseSolver.launch(self, application) # Coupler stuff if self.coupler: self.coupler.launch(self) return
def launch( self, application ): BaseSolver.launch( self, application ) # Coupler stuff if self.coupler: self.coupler.launch( self ) return