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
119873b3
Unverified
Commit
119873b3
authored
2 years ago
by
René Fritze
Browse files
Options
Downloads
Patches
Plain Diff
[tests] fix build for integrands_{laplace,product}
parent
05aa8124
No related branches found
Branches containing commit
No related tags found
1 merge request
!10
Draft: consolidate refactoring work
Pipeline
#135523
failed
2 years ago
Stage: images
Stage: cpp
Stage: headercheck
Stage: python
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/gdt/test/integrands/integrands_laplace.cc
+8
-5
8 additions, 5 deletions
dune/gdt/test/integrands/integrands_laplace.cc
dune/gdt/test/integrands/integrands_product.cc
+9
-5
9 additions, 5 deletions
dune/gdt/test/integrands/integrands_product.cc
with
17 additions
and
10 deletions
dune/gdt/test/integrands/integrands_laplace.cc
+
8
−
5
View file @
119873b3
...
@@ -119,11 +119,14 @@ struct LaplaceIntegrandTest : public IntegrandTest<G>
...
@@ -119,11 +119,14 @@ struct LaplaceIntegrandTest : public IntegrandTest<G>
// std::string grid_name = XT::Common::Typename<G>::value();
// std::string grid_name = XT::Common::Typename<G>::value();
const
auto
space
=
make_continuous_lagrange_space
<
1
>
(
grid_view
,
/*polorder=*/
2
);
const
auto
space
=
make_continuous_lagrange_space
<
1
>
(
grid_view
,
/*polorder=*/
2
);
const
auto
n
=
space
.
mapper
().
size
();
const
auto
n
=
space
.
mapper
().
size
();
MatrixType
stiffness_matrix
(
n
,
n
,
make_element_sparsity_pattern
(
space
,
space
,
grid_view
));
BilinearForm
<
GV
,
1
>
laplace_form
(
grid_view
);
MatrixOperator
<
GV
,
1
>
laplace_operator
(
grid_view
,
space
,
space
,
stiffness_matrix
);
laplace_form
+=
LocalElementIntegralBilinearForm
<
E
,
1
>
(
integrand
);
laplace_operator
.
append
(
LocalElementIntegralBilinearForm
<
E
,
1
>
(
integrand
));
auto
laplace_op
=
laplace_form
.
template
with
<
MatrixType
>(
space
,
space
);
laplace_operator
.
assemble
(
true
);
auto
walker
=
XT
::
Grid
::
make_walker
(
grid_view
);
const
auto
mat_data_ptr
=
XT
::
Common
::
serialize_rowwise
(
stiffness_matrix
);
walker
.
append
(
laplace_op
);
walker
.
walk
(
DXTC_TEST_CONFIG_GET
(
"setup.use_tbb"
,
true
));
const
auto
mat_data_ptr
=
XT
::
Common
::
serialize_rowwise
(
laplace_op
.
matrix
());
const
auto
min_entry
=
*
std
::
min_element
(
mat_data_ptr
.
begin
(),
mat_data_ptr
.
begin
()
+
n
*
n
);
const
auto
min_entry
=
*
std
::
min_element
(
mat_data_ptr
.
begin
(),
mat_data_ptr
.
begin
()
+
n
*
n
);
const
auto
max_entry
=
*
std
::
max_element
(
mat_data_ptr
.
begin
(),
mat_data_ptr
.
begin
()
+
n
*
n
);
const
auto
max_entry
=
*
std
::
max_element
(
mat_data_ptr
.
begin
(),
mat_data_ptr
.
begin
()
+
n
*
n
);
const
auto
square_sum
=
std
::
accumulate
(
const
auto
square_sum
=
std
::
accumulate
(
...
...
This diff is collapsed.
Click to expand it.
dune/gdt/test/integrands/integrands_product.cc
+
9
−
5
View file @
119873b3
...
@@ -110,11 +110,15 @@ struct ProductIntegrandTest : public IntegrandTest<G>
...
@@ -110,11 +110,15 @@ struct ProductIntegrandTest : public IntegrandTest<G>
const
auto
&
grid_view
=
grid_provider_
->
leaf_view
();
const
auto
&
grid_view
=
grid_provider_
->
leaf_view
();
const
auto
space
=
make_continuous_lagrange_space
<
1
>
(
grid_view
,
/*polorder=*/
2
);
const
auto
space
=
make_continuous_lagrange_space
<
1
>
(
grid_view
,
/*polorder=*/
2
);
const
auto
n
=
space
.
mapper
().
size
();
const
auto
n
=
space
.
mapper
().
size
();
MatrixType
mass_matrix
(
n
,
n
,
make_element_sparsity_pattern
(
space
,
space
,
grid_view
));
MatrixOperator
<
GV
,
1
>
product_operator
(
grid_view
,
space
,
space
,
mass_matrix
);
BilinearForm
<
GV
,
1
>
product_form
(
grid_view
);
product_operator
.
append
(
LocalElementIntegralBilinearForm
<
E
,
1
>
(
integrand
));
product_form
+=
LocalElementIntegralBilinearForm
<
E
,
1
>
(
integrand
);
product_operator
.
assemble
(
true
);
auto
product_op
=
product_form
.
template
with
<
MatrixType
>(
space
,
space
);
const
auto
mat_data_ptr
=
XT
::
Common
::
serialize_rowwise
(
mass_matrix
);
auto
walker
=
XT
::
Grid
::
make_walker
(
grid_view
);
walker
.
append
(
product_op
);
walker
.
walk
(
DXTC_TEST_CONFIG_GET
(
"setup.use_tbb"
,
true
));
const
auto
mat_data_ptr
=
XT
::
Common
::
serialize_rowwise
(
product_op
.
matrix
());
const
auto
min_entry
=
*
std
::
min_element
(
mat_data_ptr
.
begin
(),
mat_data_ptr
.
begin
()
+
n
*
n
);
const
auto
min_entry
=
*
std
::
min_element
(
mat_data_ptr
.
begin
(),
mat_data_ptr
.
begin
()
+
n
*
n
);
const
auto
max_entry
=
*
std
::
max_element
(
mat_data_ptr
.
begin
(),
mat_data_ptr
.
begin
()
+
n
*
n
);
const
auto
max_entry
=
*
std
::
max_element
(
mat_data_ptr
.
begin
(),
mat_data_ptr
.
begin
()
+
n
*
n
);
const
auto
square_sum
=
std
::
accumulate
(
const
auto
square_sum
=
std
::
accumulate
(
...
...
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