DAMASK_EICMD/lib/damask/geometry/geometry.py

22 lines
477 B
Python
Raw Normal View History

# -*- coding: UTF-8 no BOM -*-
2011-12-14 01:32:26 +05:30
import damask.geometry
class Geometry():
2016-03-04 22:25:11 +05:30
"""
General class for geometry parsing.
Sub-classed by the individual solvers.
"""
2011-12-14 01:32:26 +05:30
def __init__(self,solver=''):
solverClass = {
'spectral': damask.geometry.Spectral,
'marc': damask.geometry.Marc,
}
if solver.lower() in solverClass.keys():
self.__class__=solverClass[solver.lower()]
self.__init__()