PyFoam.Execution.ParallelExecution module¶
Things that are needed for convenient parallel Execution
-
class
PyFoam.Execution.ParallelExecution.LAMMachine(machines=None, nr=None)[source]¶ Bases:
PyFoam.Basics.Utilities.UtilitiesWrapper class for starting an stopping a LAM-Machine
-
__init__(machines=None, nr=None)[source]¶ Parameters: - machines – Name of the file with the machine information
- nr – Number of processes
-
__module__= 'PyFoam.Execution.ParallelExecution'¶
-
buildMPIrun(argv, expandApplication=True)[source]¶ Builds a list with a working mpirun command (for that MPI-Implementation) :param argv: the original arguments that are to be wrapped :param expandApplication: Expand the :return: list with the correct mpirun-command
-
writeDecomposition(sDir, par)[source]¶ Write parameter file for a decomposition :param par:Parameters specific for that kind of decomposition :type par:str :param sDir: Solution directory :type sDir: PyFoam.RunDictionary.SolutionDirectory
-