Unverified Commit 828975d9 authored by Petar Mlinarić's avatar Petar Mlinarić Committed by GitHub
Browse files

Merge pull request #1617 from artpelling/discrete-BT

enable discrete-time BT
parents 24959527 5d1bb8ff
Pipeline #137963 failed with stages
in 62 minutes and 28 seconds
......@@ -16,7 +16,7 @@
* several additional features for neural networks
* Art Pelling, a.pelling@tu-berlin.de
* support for discrete-time LTI systems and Lyapunov equations
* support for discrete-time LTI systems, Lyapunov equations and balanced truncation
* dedicated Hankel operator class
### pyMOR 2021.2
......
......@@ -337,7 +337,7 @@ class LTIPGReductor(ProjectionBasedReductor):
return projected_operators
def build_rom(self, projected_operators, error_estimator):
return LTIModel(error_estimator=error_estimator, **projected_operators)
return LTIModel(error_estimator=error_estimator, sampling_time=self.fom.sampling_time, **projected_operators)
def extend_basis(self, **kwargs):
raise NotImplementedError
......
......@@ -136,8 +136,6 @@ class BTReductor(GenericBTReductor):
"""
def _gramians(self):
if self.fom.sampling_time > 0:
raise NotImplementedError
return self.fom.gramian('c_lrcf', mu=self.mu), self.fom.gramian('o_lrcf', mu=self.mu)
def error_bounds(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment