Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-codegen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Christian Heinigk
dune-codegen
Commits
0565697d
Commit
0565697d
authored
8 years ago
by
René Heß
Browse files
Options
Downloads
Patches
Plain Diff
Fix two more small bugs
parent
4f0ca24f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/dune/perftool/sumfact/amatrix.py
+3
-2
3 additions, 2 deletions
python/dune/perftool/sumfact/amatrix.py
python/dune/perftool/sumfact/quadrature.py
+2
-2
2 additions, 2 deletions
python/dune/perftool/sumfact/quadrature.py
with
5 additions
and
4 deletions
python/dune/perftool/sumfact/amatrix.py
+
3
−
2
View file @
0565697d
...
@@ -204,12 +204,13 @@ def construct_theta(name, transpose, derivative):
...
@@ -204,12 +204,13 @@ def construct_theta(name, transpose, derivative):
polynomials
=
name_polynomials
()
polynomials
=
name_polynomials
()
qp
=
name_oned_quadrature_points
()
qp
=
name_oned_quadrature_points
()
access
=
"
j,i
"
if
transpose
else
"
i,j
"
#
access = "j,i" if transpose else "i,j"
basispol
=
"
dp
"
if
derivative
else
"
p
"
basispol
=
"
dp
"
if
derivative
else
"
p
"
polynomial_access
=
"
i,{}[j]
"
.
format
(
qp
)
if
transpose
else
"
j,{}[i]
"
.
format
(
qp
)
return
[
"
for (std::size_t i=0; i<{}; i++){{
"
.
format
(
shape
[
0
]),
return
[
"
for (std::size_t i=0; i<{}; i++){{
"
.
format
(
shape
[
0
]),
"
for (std::size_t j=0; j<{}; j++){{
"
.
format
(
shape
[
1
]),
"
for (std::size_t j=0; j<{}; j++){{
"
.
format
(
shape
[
1
]),
"
{}.colmajoraccess(
{}
) = {}.{}(
j,{}[i]
);
"
.
format
(
name
,
access
,
polynomials
,
basispol
,
q
p
),
"
{}.colmajoraccess(
i,j
) = {}.{}(
{}
);
"
.
format
(
name
,
polynomials
,
basispol
,
p
olynomial_access
),
"
}
"
,
"
}
"
,
"
}
"
]
"
}
"
]
...
...
This diff is collapsed.
Click to expand it.
python/dune/perftool/sumfact/quadrature.py
+
2
−
2
View file @
0565697d
...
@@ -7,7 +7,7 @@ from dune.perftool.generation import (backend,
...
@@ -7,7 +7,7 @@ from dune.perftool.generation import (backend,
temporary_variable
,
temporary_variable
,
)
)
from
dune.perftool.sumfact.amatrix
import
(
name_number_of_
basis_function
s_per_direction
,
from
dune.perftool.sumfact.amatrix
import
(
name_number_of_
quadrature_point
s_per_direction
,
name_oned_quadrature_points
,
name_oned_quadrature_points
,
name_oned_quadrature_weights
,
name_oned_quadrature_weights
,
)
)
...
@@ -71,7 +71,7 @@ def pymbolic_base_weight():
...
@@ -71,7 +71,7 @@ def pymbolic_base_weight():
@iname
@iname
def
sumfact_quad_iname
(
d
,
context
):
def
sumfact_quad_iname
(
d
,
context
):
name
=
"
quad_{}_{}
"
.
format
(
context
,
d
)
name
=
"
quad_{}_{}
"
.
format
(
context
,
d
)
domain
(
name
,
name_number_of_
basis_function
s_per_direction
())
domain
(
name
,
name_number_of_
quadrature_point
s_per_direction
())
return
name
return
name
...
...
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