Skip to content
Snippets Groups Projects
Commit 11488dc0 authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[test.stationary...] update to new operator API

parent 2272e81c
No related branches found
No related tags found
3 merge requests!10Draft: consolidate refactoring work,!5Work on refactor operators bindings,!1Refactor operators
......@@ -76,7 +76,7 @@ protected:
using M = typename XT::LA::Container<R, la>::MatrixType;
using V = XT::LA::vector_t<M>;
using DF = DiscreteFunction<V, GV, m>;
using O = OperatorInterface<M, GV, m>;
using O = OperatorInterface<GV, m, 1, m, 1, R, M>;
public:
using E = XT::Grid::extract_entity_t<GV>;
......@@ -258,14 +258,13 @@ public:
};
} else if (spatial_norm_id == "L_2") {
spatial_norm = [&](const DF& func) {
return l2_norm(reference_space.grid_view(), func, DXTC_TEST_CONFIG_GET("setup.over_integrate", 3));
return l2_norm(
reference_space.grid_view(), func, /*weight=*/1., DXTC_TEST_CONFIG_GET("setup.over_integrate", 3));
};
} else if (spatial_norm_id == "H_1_semi") {
spatial_norm = [&](const DF& func) {
auto product = make_bilinear_form(reference_space.grid_view(), func, func);
product += LocalElementIntegralBilinearForm<E, m>(LocalLaplaceIntegrand<E, m>(),
DXTC_TEST_CONFIG_GET("setup.over_integrate", 3));
return std::sqrt(product.apply2());
return h1_semi_norm(
reference_space.grid_view(), func, /*weight=*/1., DXTC_TEST_CONFIG_GET("setup.over_integrate", 3));
};
} else
DUNE_THROW(XT::Common::Exceptions::wrong_input_given,
......
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