コード例 #1
0
def killme():
    MPICommons.finalize()
コード例 #2
0
ファイル: __init__.py プロジェクト: PytLab/KMCLib
def killme():
    MPICommons.finalize()
コード例 #3
0
from PluginInterfaces.KMCRateCalculatorPlugin import KMCRateCalculatorPlugin
from PluginInterfaces.KMCAnalysisPlugin import KMCAnalysisPlugin
from Backend.Backend import MPICommons
from KMCLib.Utilities.Trajectory.XYZTrajectory import XYZTrajectory
from KMCLib.Utilities.Trajectory.Trajectory import Trajectory
from KMCLib.Utilities.Trajectory.CFGTrajectory import CFGTrajectory

__all__ = [
    'KMCLocalConfiguration', 'KMCInteractions', 'KMCConfiguration',
    'KMCLattice', 'KMCLatticeModel', 'KMCUnitCell', 'KMCControlParameters',
    'KMCInteractionsFromScript', 'KMCConfigurationFromScript',
    'KMCRateCalculatorPlugin', 'KMCAnalysisPlugin', 'KMCProcess',
    'OnTheFlyMSD', 'TimeStepDistribution', 'MPICommons', 'XYZTrajectory',
    'Trajectory', 'CFGTrajectory'
]

# Trick to initialize and finalize MPI only once.
MPICommons.init()

# Print the header when the module is loaded.
Utilities.PrintUtilities.printHeader()


# Make sure to finalize MPI on exit.
def killme():
    MPICommons.finalize()


import atexit
atexit.register(killme)
コード例 #4
0
ファイル: __init__.py プロジェクト: PytLab/KMCLib
from Analysis.Composition import Composition
from Utilities.SaveAndReadUtilities import KMCInteractionsFromScript
from Utilities.SaveAndReadUtilities import KMCConfigurationFromScript
from PluginInterfaces.KMCRateCalculatorPlugin import KMCRateCalculatorPlugin
from PluginInterfaces.KMCAnalysisPlugin import KMCAnalysisPlugin
from PluginInterfaces.KMCBreakerPlugin import KMCBreakerPlugin
from Backend.Backend import MPICommons

__all__ = ['KMCLocalConfiguration', 'KMCInteractions', 'KMCConfiguration',
           'KMCLattice', 'KMCLatticeModel', 'KMCUnitCell',
           'KMCControlParameters', 'KMCInteractionsFromScript',
           'KMCConfigurationFromScript', 'KMCRateCalculatorPlugin',
           'KMCAnalysisPlugin', 'KMCBreakerPlugin', 'KMCProcess',
           'KMCBucketProcess', 'OnTheFlyMSD',
           'TimeStepDistribution', 'Composition',
           'ProcessStatistics', 'MPICommons']

# Trick to initialize and finalize MPI only once.
MPICommons.init()

# Print the header when the module is loaded.
Utilities.PrintUtilities.printHeader()

# Make sure to finalize MPI on exit.
def killme():
    MPICommons.finalize()

import atexit
atexit.register(killme)