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
8c462b12
Commit
8c462b12
authored
9 years ago
by
Dominic Kempf
Browse files
Options
Downloads
Patches
Plain Diff
generate_term -> generate_kernel
parent
81e909eb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/dune/perftool/pdelab/localoperator.py
+3
-3
3 additions, 3 deletions
python/dune/perftool/pdelab/localoperator.py
with
3 additions
and
3 deletions
python/dune/perftool/pdelab/localoperator.py
+
3
−
3
View file @
8c462b12
...
...
@@ -74,7 +74,7 @@ def measure_specific_details(measure):
return
ret
def
generate_
t
er
m
(
integrand
=
None
,
measure
=
None
):
def
generate_
k
er
nel
(
integrand
=
None
,
measure
=
None
):
assert
integrand
and
measure
# Delete all non-include parts of the cache.
...
...
@@ -152,7 +152,7 @@ def generate_localoperator(form):
# Generate the necessary residual methods
for
integral
in
form
.
integrals
():
kernel
=
generate_
t
er
m
(
integrand
=
integral
.
integrand
(),
measure
=
integral
.
integral_type
())
kernel
=
generate_
k
er
nel
(
integrand
=
integral
.
integrand
(),
measure
=
integral
.
integral_type
())
operator_kernels
[(
integral
.
integral_type
(),
'
residual
'
)]
=
kernel
# Generate the necessary jacobian methods
...
...
@@ -165,7 +165,7 @@ def generate_localoperator(form):
jacform
=
expand_derivatives
(
derivative
(
form
,
form
.
coefficients
()[
0
]))
for
integral
in
jacform
.
integrals
():
kernel
=
generate_
t
er
m
(
integrand
=
integral
.
integrand
(),
measure
=
integral
.
integral_type
())
kernel
=
generate_
k
er
nel
(
integrand
=
integral
.
integrand
(),
measure
=
integral
.
integral_type
())
operator_kernels
[(
integral
.
integral_type
(),
'
jacobian
'
)]
=
kernel
# TODO: JacobianApply for matrix-free computations.
...
...
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