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
f17a9264
Commit
f17a9264
authored
6 years ago
by
Dominic Kempf
Browse files
Options
Downloads
Patches
Plain Diff
Treat integrals that vanish due to unfulfillable boundary predicates
parent
3d3f0a71
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/pdelab/localoperator.py
+14
-8
14 additions, 8 deletions
python/dune/perftool/pdelab/localoperator.py
python/dune/perftool/sumfact/realization.py
+3
-0
3 additions, 0 deletions
python/dune/perftool/sumfact/realization.py
with
17 additions
and
8 deletions
python/dune/perftool/pdelab/localoperator.py
+
14
−
8
View file @
f17a9264
...
...
@@ -766,14 +766,17 @@ def generate_residual_kernels(form, original_form):
for
measure
in
set
(
i
.
integral_type
()
for
i
in
form
.
integrals
()):
logger
.
info
(
"
generate_residual_kernels: measure {}
"
.
format
(
measure
))
with
global_context
(
integral_type
=
measure
):
enum_pattern
()
pattern_baseclass
()
enum_alpha
()
from
dune.perftool.pdelab.signatures
import
assembler_routine_name
with
global_context
(
kernel
=
assembler_routine_name
()):
kernel
=
[
k
for
k
in
get_backend
(
interface
=
"
generate_kernels_per_integral
"
)(
form
.
integrals_by_type
(
measure
))]
# The integrals might vanish due to unfulfillable boundary conditions.
# We only generate the local operator enums/base classes if they did not.
if
kernel
:
enum_pattern
()
pattern_baseclass
()
enum_alpha
()
# Maybe add numerical differentiation
if
get_form_option
(
"
numerical_jacobian
"
):
# Include headers for numerical methods
...
...
@@ -908,10 +911,6 @@ def generate_control_kernels(forms):
for
measure
in
set
(
i
.
integral_type
()
for
form
in
forms
for
i
in
form
.
integrals
()):
logger
.
info
(
"
generate_control_kernels: measure {}
"
.
format
(
measure
))
with
global_context
(
integral_type
=
measure
):
enum_pattern
()
pattern_baseclass
()
enum_alpha
()
from
dune.perftool.pdelab.signatures
import
assembler_routine_name
with
global_context
(
kernel
=
assembler_routine_name
()):
# TODO: Sumfactorization not yet implemented
...
...
@@ -921,6 +920,13 @@ def generate_control_kernels(forms):
forms_measure
=
[
form
.
integrals_by_type
(
measure
)
for
form
in
forms
]
kernel
=
[
k
for
k
in
control_generate_kernels_per_integral
(
forms_measure
)]
# The integrals might vanish due to unfulfillable boundary conditions.
# We only generate the local operator enums/base classes if they did not.
if
kernel
:
enum_pattern
()
pattern_baseclass
()
enum_alpha
()
operator_kernels
[(
measure
,
'
residual
'
)]
=
kernel
return
operator_kernels
...
...
This diff is collapsed.
Click to expand it.
python/dune/perftool/sumfact/realization.py
+
3
−
0
View file @
f17a9264
...
...
@@ -137,6 +137,9 @@ class BufferSwitcher(object):
def
realize_sumfact_kernel_function
(
sf
):
# Remove anything kernel related from caches
delete_cache_items
(
"
kernel_default
"
)
# Get a buffer switcher instance
buffer
=
BufferSwitcher
()
insn_dep
=
frozenset
()
...
...
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