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):
U = self.fom.solve(mu)
with self.logger.block('Extending basis with solution snapshot ...'):
extension_params = self.extension_params
if len(U) > 1 and extension_params is None:
extension_params = {'method': 'pod'}
if len(U) > 1:
if extension_params is None:
extension_params = {'method': 'pod'}
else:
extension_params.setdefault('method', 'pod')
self.reductor.extend_basis(U, copy_U=False, **(extension_params or {}))
if not self.use_error_estimator:
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