Skip to content
Snippets Groups Projects
Commit 47d04301 authored by Stephan Rave's avatar Stephan Rave
Browse files

[ei_greedy] add initial error to error sequence

parent 7d2ba2fe
Branches osmosis
No related tags found
No related merge requests found
......@@ -99,6 +99,7 @@ def ei_greedy(U, error_norm=None, atol=None, rtol=None, max_interpolation_dofs=N
errs = ERR.l2_norm() if error_norm is None else error_norm(ERR)
max_err_ind = np.argmax(errs)
initial_max_err = max_err = errs[max_err_ind]
max_errs.append(initial_max_err)
# main loop
while True:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment