def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.matrixType = self.inventory.matrixType self.timeStep = self.inventory.timeStep self.solver = self.inventory.solver self.output = self.inventory.output self.viewJacobian = self.inventory.viewJacobian self.jacobianViewer = self.inventory.jacobianViewer self.perfLogger = self.inventory.perfLogger import journal self._debug = journal.debug(self.name) if self.inventory.useCustomConstraintPC and \ not self.inventory.useSplitFields: print "WARNING: Request to use custom preconditioner for Lagrange " \ "constraints without splitting fields. " \ "Setting split fields flag to 'True'." self.inventory.useSplitFields = True ModuleFormulation.splitFields(self, self.inventory.useSplitFields) ModuleFormulation.useCustomConstraintPC(self, self.inventory.useCustomConstraintPC) return
def _configure(self): """ Setup members using inventory. """ PetscComponent._configure(self) self.dt = self.inventory.dt return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.filename = self.inventory.filename return
def _configure(self): """ Setup members using inventory. """ PetscComponent._configure(self) self.dt = self.inventory.dt return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.matrixType = self.inventory.matrixType self.timeStep = self.inventory.timeStep self.solver = self.inventory.solver self.output = self.inventory.output self.viewJacobian = self.inventory.viewJacobian self.jacobianViewer = self.inventory.jacobianViewer self.perfLogger = self.inventory.perfLogger import journal self._debug = journal.debug(self.name) if self.inventory.useCustomConstraintPC and \ not self.inventory.useSplitFields: print "WARNING: Request to use custom preconditioner for Lagrange " \ "constraints without splitting fields. " \ "Setting split fields flag to 'True'." self.inventory.useSplitFields = True ModuleFormulation.splitFields(self, self.inventory.useSplitFields) ModuleFormulation.useCustomConstraintPC(self, self.inventory.useCustomConstraintPC) return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.verbose = self.inventory.verbose return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.perfLogger = self.inventory.perfLogger return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.filename = self.inventory.filename return
def _configure(self): """ Setup members using inventory. """ PetscComponent._configure(self) self.perfLogger = self.inventory.perfLogger return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.useCUDA = self.inventory.useCUDA return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.writePartition = self.inventory.writePartition self.dataWriter = self.inventory.dataWriter return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.writePartition = self.inventory.writePartition self.dataWriter = self.inventory.dataWriter return
def _configure(self): """ Setup members using inventory. """ PetscComponent._configure(self) ModuleEqKinSrc.originTime(self, self.inventory.originTime.value) ModuleEqKinSrc.slipfn(self, self.inventory.slipfn) return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.updatePercent = self.inventory.updatePercent return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.debug = self.inventory.debug self.interpolate = self.inventory.interpolate return
def _configure(self): """Set members based using inventory. """ PetscComponent._configure(self) self.filename = self.inventory.filename self.timeFormat = self.inventory.timeFormat self.timeConstant = self.inventory.timeConstant return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.debug = self.inventory.debug self.interpolate = self.inventory.interpolate return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.totalTime = self.inventory.totalTime self.startTime = self.inventory.startTime return
def _configure(self): """ Setup members using inventory. """ PetscComponent._configure(self) ModuleEqKinSrc.originTime(self, self.inventory.originTime.value) ModuleEqKinSrc.slipfn(self, self.inventory.slipfn) return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.updatePercent = self.inventory.updatePercent return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.totalTime = self.inventory.totalTime self.startTime = self.inventory.startTime return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.useCUDA = self.inventory.useCUDA self.createNullSpace = self.inventory.createNullSpace return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.minJacobian(self.inventory.minJacobian) self.checkConditioning(self.inventory.checkConditioning) self.cell = self.inventory.cell return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.filename = self.inventory.filename self.timeFormat = self.inventory.timeFormat self.timeConstant = self.inventory.timeConstant return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.minJacobian(self.inventory.minJacobian) self.checkConditioning(self.inventory.checkConditioning) self.cell = self.inventory.cell return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.useCUDA = self.inventory.useCUDA self.createNullSpace = self.inventory.createNullSpace return
def _configure(self): """ Setup members using inventory. """ PetscComponent._configure(self) self.faultQuadrature = self.inventory.faultQuadrature self.upDir = map(float, self.inventory.upDir) ModuleFault.id(self, self.inventory.matId) ModuleFault.label(self, self.inventory.faultLabel) ModuleFault.edge(self, self.inventory.faultEdge) self.perfLogger = self.inventory.perfLogger return
def _configure(self): """ Setup members using inventory. """ PetscComponent._configure(self) self.faultQuadrature = self.inventory.faultQuadrature self.upDir = map(float, self.inventory.upDir) ModuleFault.id(self, self.inventory.matId) ModuleFault.label(self, self.inventory.faultLabel) ModuleFault.edge(self, self.inventory.faultEdge) self.perfLogger = self.inventory.perfLogger return
def _configure(self): """ Setup members using inventory. """ try: PetscComponent._configure(self) ModuleBoundaryCondition.label(self, self.inventory.label) self.upDir = map(float, self.inventory.upDir) self.perfLogger = self.inventory.perfLogger except ValueError, err: aliases = ", ".join(self.aliases) raise ValueError("Error while configuring boundary condition " "(%s):\n%s" % (aliases, err.message))
def _configure(self): """ Setup members using inventory. """ try: PetscComponent._configure(self) ModuleBoundaryCondition.label(self, self.inventory.label) self.upDir = map(float, self.inventory.upDir) self.perfLogger = self.inventory.perfLogger except ValueError, err: aliases = ", ".join(self.aliases) raise ValueError("Error while configuring boundary condition " "(%s):\n%s" % (aliases, err.message))
def _configure(self): """ Setup members using inventory. """ try: PetscComponent._configure(self) self.faultQuadrature = self.inventory.faultQuadrature self.upDir = map(float, self.inventory.upDir) ModuleFault.id(self, self.inventory.matId) ModuleFault.label(self, self.inventory.faultLabel) self.perfLogger = self.inventory.perfLogger except ValueError, err: aliases = ", ".join(self.aliases) raise ValueError("Error while configuring fault " "(%s):\n%s" % (aliases, err.message))
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.normalizer = self.inventory.normalizer self.dimension = self.inventory.dimension self.materials = self.inventory.materials self.bc = self.inventory.bc self.interfaces = self.inventory.interfaces if isinstance(self.inventory.gravityField, NullComponent): self.gravityField = None else: self.gravityField = self.inventory.gravityField return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) ModuleOutputManager.coordsys(self, self.inventory.coordsys) ModuleOutputManager.writer(self, self.inventory.writer) if not isinstance(self.inventory.vertexFilter, NullComponent): ModuleOutputManager.vertexFilter(self, self.inventory.vertexFilter) if not isinstance(self.inventory.cellFilter, NullComponent): ModuleOutputManager.cellFilter(self, self.inventory.cellFilter) self.perfLogger = self.inventory.perfLogger return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) ModuleOutputManager.coordsys(self, self.inventory.coordsys) ModuleOutputManager.writer(self, self.inventory.writer) if not isinstance(self.inventory.vertexFilter, NullComponent): ModuleOutputManager.vertexFilter(self, self.inventory.vertexFilter) if not isinstance(self.inventory.cellFilter, NullComponent): ModuleOutputManager.cellFilter(self, self.inventory.cellFilter) self.perfLogger = self.inventory.perfLogger return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) self.normalizer = self.inventory.normalizer self.dimension = self.inventory.dimension self.materials = self.inventory.materials self.bc = self.inventory.bc self.interfaces = self.inventory.interfaces if isinstance(self.inventory.gravityField, NullComponent): self.gravityField = None else: self.gravityField = self.inventory.gravityField return
def _configure(self): """ Setup members using inventory. """ try: PetscComponent._configure(self) self.label(self.inventory.label) self.dbProperties(self.inventory.dbProperties) from pylith.utils.NullComponent import NullComponent if not isinstance(self.inventory.dbInitialState, NullComponent): self.dbInitialState(self.inventory.dbInitialState) self.perfLogger = self.inventory.perfLogger except ValueError, err: aliases = ", ".join(self.aliases) raise ValueError("Error while configuring friction model " "(%s):\n%s" % (aliases, err.message))
def _configure(self): """ Setup members using inventory. """ try: PetscComponent._configure(self) self.label(self.inventory.label) self.dbProperties(self.inventory.dbProperties) from pylith.utils.NullComponent import NullComponent if not isinstance(self.inventory.dbInitialState, NullComponent): self.dbInitialState(self.inventory.dbInitialState) self.perfLogger = self.inventory.perfLogger except ValueError, err: aliases = ", ".join(self.aliases) raise ValueError("Error while configuring friction model " "(%s):\n%s" % (aliases, err.message))
def _configure(self): """ Setup members using inventory. """ PetscComponent._configure(self) import numpy if isinstance(self.inventory.dbChange, NullComponent): if not isinstance(self.inventory.thChange, NullComponent): raise ValueError("Cannot provide a time history temporal database " "without a change in value spatial database " "for time dependent boundary condition '%s'." % \ self.label) if not isinstance(self.inventory.dbInitial, NullComponent): ModuleTimeDependent.dbInitial(self, self.inventory.dbInitial) if not isinstance(self.inventory.dbRate, NullComponent): ModuleTimeDependent.dbRate(self, self.inventory.dbRate) if not isinstance(self.inventory.dbChange, NullComponent): ModuleTimeDependent.dbChange(self, self.inventory.dbChange) if not isinstance(self.inventory.thChange, NullComponent): ModuleTimeDependent.dbTimeHistory(self, self.inventory.thChange) return
def _configure(self): """ Setup members using inventory. """ PetscComponent._configure(self) import numpy if isinstance(self.inventory.dbChange, NullComponent): if not isinstance(self.inventory.thChange, NullComponent): raise ValueError("Cannot provide a time history temporal database " "without a change in value spatial database " "for time dependent boundary condition '%s'." % \ self.label) if not isinstance(self.inventory.dbInitial, NullComponent): ModuleTimeDependent.dbInitial(self, self.inventory.dbInitial) if not isinstance(self.inventory.dbRate, NullComponent): ModuleTimeDependent.dbRate(self, self.inventory.dbRate) if not isinstance(self.inventory.dbChange, NullComponent): ModuleTimeDependent.dbChange(self, self.inventory.dbChange) if not isinstance(self.inventory.thChange, NullComponent): ModuleTimeDependent.dbTimeHistory(self, self.inventory.thChange) return
def _configure(self): """ Set members based using inventory. """ PetscComponent._configure(self) return
def _configure(self): PetscComponent._configure(self) self.value = self.inventory.value return
def _configure(self): PetscComponent._configure(self) return
def _configure(self): PetscComponent._configure(self) self.value = self.inventory.value return
def _configure(self): """Set members based using inventory. """ PetscComponent._configure(self) return