Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gdt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ag-ohlberger
dune-community
dune-gdt
Commits
11488dc0
Commit
11488dc0
authored
4 years ago
by
Dr. Felix Tobias Schindler
Browse files
Options
Downloads
Patches
Plain Diff
[test.stationary...] update to new operator API
parent
2272e81c
No related branches found
No related tags found
3 merge requests
!10
Draft: consolidate refactoring work
,
!5
Work on refactor operators bindings
,
!1
Refactor operators
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/gdt/test/stationary-eocstudies/base.hh
+5
-6
5 additions, 6 deletions
dune/gdt/test/stationary-eocstudies/base.hh
with
5 additions
and
6 deletions
dune/gdt/test/stationary-eocstudies/base.hh
+
5
−
6
View file @
11488dc0
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment