Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
pymor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
pyMOR
pymor
Commits
f7413276
Commit
f7413276
authored
Oct 09, 2020
by
Stephan Rave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[model] also pass kwargs to error_estimator
parent
8eb16167
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/pymor/models/interface.py
src/pymor/models/interface.py
+2
-2
No files found.
src/pymor/models/interface.py
View file @
f7413276
...
...
@@ -66,12 +66,12 @@ class Model(CacheableObject, ParametricObject):
def
_compute_solution_error_estimate
(
self
,
solution
,
mu
=
None
,
**
kwargs
):
if
self
.
error_estimator
is
None
:
raise
ValueError
(
'Model has no error estimator'
)
return
self
.
error_estimator
.
estimate_error
(
solution
,
mu
,
self
)
return
self
.
error_estimator
.
estimate_error
(
solution
,
mu
,
self
,
**
kwargs
)
def
_compute_output_error_estimate
(
self
,
solution
,
mu
=
None
,
**
kwargs
):
if
self
.
error_estimator
is
None
:
raise
ValueError
(
'Model has no error estimator'
)
return
self
.
error_estimator
.
estimate_output_error
(
solution
,
mu
,
self
)
return
self
.
error_estimator
.
estimate_output_error
(
solution
,
mu
,
self
,
**
kwargs
)
_compute_allowed_kwargs
=
frozenset
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment