Package PyFoam :: Package Execution :: Module ParallelExecution :: Class LAMMachine
[hide private]
[frames] | no frames]

Class LAMMachine

source code

                object --+    
                         |    
Basics.Utilities.Utilities --+
                             |
                            LAMMachine

Wrapper class for starting an stopping a LAM-Machine

Instance Methods [hide private]
 
__init__(self, machines=None, nr=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
machineOK(self)
Check whether the LAM machine was properly booted
source code
 
stop(self)
Stops a LAM-machine (if one is running)
source code
 
boot(self)
Boots a LAM-machine using the machine-file
source code
 
cpuNr(self) source code
 
buildMPIrun(self, argv, expandApplication=True)
Builds a list with a working mpirun command (for that MPI-Implementation)
source code
 
writeMetis(self, sDir)
Write the parameter-File for a metis decomposition
source code
 
writeSimple(self, sDir, direction)
Write the parameter-File for a metis decomposition
source code
 
writeDecomposition(self, sDir, par)
Write parameter file for a decomposition
source code

Inherited from Basics.Utilities.Utilities: execute, listDirectory, writeDictionaryHeader

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]

Inherited from Basics.Utilities.Utilities: excludeNames

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, machines=None, nr=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • machines - Name of the file with the machine information
  • nr - Number of processes
Overrides: object.__init__

buildMPIrun(self, argv, expandApplication=True)

source code 

Builds a list with a working mpirun command (for that MPI-Implementation)

Parameters:
  • argv - the original arguments that are to be wrapped
  • expandApplication - Expand the
Returns:
list with the correct mpirun-command

writeMetis(self, sDir)

source code 

Write the parameter-File for a metis decomposition

Parameters:
  • sDir (PyFoam.RunDictionary.SolutionDirectory) - Solution directory

writeSimple(self, sDir, direction)

source code 

Write the parameter-File for a metis decomposition

Parameters:
  • sDir (PyFoam.RunDictionary.SolutionDirectory) - Solution directory
  • direction - direction in which to decompose (0=x, 1=y, 2=z)

writeDecomposition(self, sDir, par)

source code 

Write parameter file for a decomposition

Parameters:
  • par (str) - Parameters specific for that kind of decomposition
  • sDir (PyFoam.RunDictionary.SolutionDirectory) - Solution directory