2014-04-02 00:11:14 +05:30
|
|
|
# -*- coding: UTF-8 no BOM -*-
|
|
|
|
|
2011-12-22 16:00:25 +05:30
|
|
|
# $Id$
|
|
|
|
|
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__()
|
|
|
|
|