def killme(): MPICommons.finalize()
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)
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)