armi.tests.test_mpiParameters module
Tests of the MPI portion of the Parameters class.
- class armi.tests.test_mpiParameters.MockSyncPC(_state: List[Any] | None = None)[source]
Bases:
ParameterCollectionCreate a new ParameterCollection instance.
- Parameters:
_state – Optional list of parameter values, ordered by _allFields. Passed values should come from a call to __getstate__(). This should only be used internally to this model.
- pDefs: parameterDefinitions.ParameterDefinitionCollection = <armi.reactor.parameters.parameterDefinitions.ParameterDefinitionCollection object>
- pb = <armi.reactor.parameters.parameterDefinitions.ParameterBuilder object>
- armi.tests.test_mpiParameters.makeComp(name)[source]
Helper method for MPI sync tests: mock up a Composite with a minimal param collections.
- class armi.tests.test_mpiParameters.SynchronizationTests(methodName='runTest')[source]
Bases:
TestCaseSome tests that must be run with mpirun instead of the standard unittest system.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.