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

Class LAMMachine

Utilities --+
            |
           LAMMachine


Wrapper class for starting an stopping a LAM-Machine
Method Summary
  __init__(self, machines)
  boot(self)
Boots a LAM-machine using the machine-file
  buildMPIrun(self, argv)
Builds a list with a working mpirun command (for that MPI-Implementation)
  cpuNr(self)
  machineOK(self)
Check whether the LAM machine was properly booted
  stop(self)
Stops a LAM-machine (if one is running)
  writeDecomposition(self, sDir, par)
Write parameter file for a decomposition @param par:Parameters specific for that kind of decomposition @type par:str
  writeMetis(self, sDir)
Write the parameter-File for a metis decomposition
  writeSimple(self, sDir, direction)
Write the parameter-File for a metis decomposition
    Inherited from Utilities
  execute(self, cmd, debug)
Execute the command cmd
  listDirectory(self, d)
Lists the files in a directory, but excludes certain names and files with certain endings
  writeDictionaryHeader(self, f)
Writes a dummy header so OpenFOAM accepts the file as a dictionary

Class Variable Summary
    Inherited from Utilities
list excludeNames = ['^.svn$', '~$']

Method Details

__init__(self, machines)
(Constructor)

Parameters:
machines - Name of the file with the machine information
Overrides:
PyFoam.Basics.Utilities.Utilities.__init__

boot(self)

Boots a LAM-machine using the machine-file

buildMPIrun(self, argv)

Builds a list with a working mpirun command (for that MPI-Implementation)
Parameters:
argv - the original arguments that are to be wrapped
Returns:
list with the correct mpirun-command

machineOK(self)

Check whether the LAM machine was properly booted

stop(self)

Stops a LAM-machine (if one is running)

writeDecomposition(self, sDir, par)

Write parameter file for a decomposition @param par:Parameters specific for that kind of decomposition @type par:str
Parameters:
sDir - Solution directory
           (type=PyFoam.RunDictionary.SolutionDirectory)

writeMetis(self, sDir)

Write the parameter-File for a metis decomposition
Parameters:
sDir - Solution directory
           (type=PyFoam.RunDictionary.SolutionDirectory)

writeSimple(self, sDir, direction)

Write the parameter-File for a metis decomposition
Parameters:
sDir - Solution directory
           (type=PyFoam.RunDictionary.SolutionDirectory)
direction - direction in which to decompose (0=x, 1=y, 2=z)

Generated by Epydoc 2.1 on Mon Jan 22 23:52:48 2007 http://epydoc.sf.net