Add openmc.examples module that replaces input_set.py from tests

This commit is contained in:
Paul Romano 2017-04-06 21:20:29 -05:00
parent e9dfad8519
commit fc0c907030
33 changed files with 1130 additions and 1447 deletions

View file

@ -3,15 +3,11 @@
import os
import sys
sys.path.insert(0, os.pardir)
from testing_harness import TestHarness, PyAPITestHarness
import openmc
class MGBasicTestHarness(PyAPITestHarness):
def _build_inputs(self):
super(MGBasicTestHarness, self)._build_inputs()
from testing_harness import PyAPITestHarness
from openmc.examples import slab_mg
if __name__ == '__main__':
harness = MGBasicTestHarness('statepoint.10.*', False, mg=True)
model = slab_mg()
harness = PyAPITestHarness('statepoint.10.h5', False, model)
harness.main()