Commit b3ba6ac3 authored by Stephan Rave's avatar Stephan Rave Committed by github-actions[bot]

[rb_greedy] always default too POD for snapshots with more than one vector

parent a9b503aa
Pipeline #65183 passed with stages
in 68 minutes and 35 seconds
...@@ -248,8 +248,11 @@ class RBSurrogate(WeakGreedySurrogate): ...@@ -248,8 +248,11 @@ class RBSurrogate(WeakGreedySurrogate):
U = self.fom.solve(mu) U = self.fom.solve(mu)
with self.logger.block('Extending basis with solution snapshot ...'): with self.logger.block('Extending basis with solution snapshot ...'):
extension_params = self.extension_params extension_params = self.extension_params
if len(U) > 1 and extension_params is None: if len(U) > 1:
extension_params = {'method': 'pod'} if extension_params is None:
extension_params = {'method': 'pod'}
extension_params.setdefault('method', 'pod')
self.reductor.extend_basis(U, copy_U=False, **(extension_params or {})) self.reductor.extend_basis(U, copy_U=False, **(extension_params or {}))
if not self.use_error_estimator: if not self.use_error_estimator:
self.remote_reductor = self.pool.push(self.reductor) self.remote_reductor = self.pool.push(self.reductor)
Markdown is supported
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