DAMASK_EICMD/lib/damask/geometry/geometry.py

22 lines
483 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,
}
2016-07-02 16:58:32 +05:30
if solver.lower() in list(solverClass.keys()):
2011-12-14 01:32:26 +05:30
self.__class__=solverClass[solver.lower()]
self.__init__()