DAMASK_EICMD/lib/damask/geometry/geometry.py

20 lines
457 B
Python
Raw Normal View History

# $Id$
2011-12-14 01:32:26 +05:30
import damask.geometry
class Geometry():
'''
General class for geometry parsing.
Sub-classed by the individual solvers.
'''
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__()