def _run_openmc(self): executor = Executor() if self._opts.mpi_exec is not None: returncode = executor.run_simulation(mpi_procs=self._opts.mpi_np, openmc_exec=self._opts.exe, mpi_exec=self._opts.mpi_exec) else: returncode = executor.run_simulation(openmc_exec=self._opts.exe) assert returncode == 0, 'OpenMC did not exit successfully.'
def _run_openmc_restart(self): # Get the name of the statepoint file. statepoint = glob.glob(os.path.join(os.getcwd(), self._sp_name)) # Run OpenMC executor = Executor() if self._opts.mpi_exec is not None: returncode = executor.run_simulation(mpi_procs=self._opts.mpi_np, restart_file=statepoint, openmc_exec=self._opts.exe, mpi_exec=self._opts.mpi_exec) else: returncode = executor.run_simulation(openmc_exec=self._opts.exe) assert returncode == 0, 'OpenMC did not exit successfully.'
def _run_openmc(self): executor = Executor() returncode = executor.plot_geometry(openmc_exec=self._opts.exe) assert returncode == 0, 'OpenMC did not exit successfully.'