Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
meshmode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Show more breadcrumbs
Andreas Klöckner
meshmode
Commits
0a025178
Commit
0a025178
authored
4 years ago
by
Alexandru Fikl
Browse files
Options
Downloads
Patches
Plain Diff
fix some remaining issues with 1d meshes
parent
8b127637
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!71
Fix some remaining issues with 1D meshes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
meshmode/discretization/connection/opposite_face.py
+1
-1
1 addition, 1 deletion
meshmode/discretization/connection/opposite_face.py
meshmode/discretization/poly_element.py
+3
-1
3 additions, 1 deletion
meshmode/discretization/poly_element.py
with
4 additions
and
2 deletions
meshmode/discretization/connection/opposite_face.py
+
1
−
1
View file @
0a025178
...
@@ -43,7 +43,7 @@ def _make_cross_face_batches(queue,
...
@@ -43,7 +43,7 @@ def _make_cross_face_batches(queue,
return
cl
.
array
.
to_device
(
queue
,
ary
,
array_queue
=
None
)
return
cl
.
array
.
to_device
(
queue
,
ary
,
array_queue
=
None
)
from
meshmode.discretization.connection.direct
import
InterpolationBatch
from
meshmode.discretization.connection.direct
import
InterpolationBatch
if
tgt_bdry_discr
.
ambient_
dim
==
1
:
if
tgt_bdry_discr
.
dim
==
0
:
yield
InterpolationBatch
(
yield
InterpolationBatch
(
from_group_index
=
i_src_grp
,
from_group_index
=
i_src_grp
,
from_element_indices
=
to_dev
(
src_bdry_element_indices
),
from_element_indices
=
to_dev
(
src_bdry_element_indices
),
...
...
This diff is collapsed.
Click to expand it.
meshmode/discretization/poly_element.py
+
3
−
1
View file @
0a025178
...
@@ -177,7 +177,9 @@ class QuadratureSimplexElementGroup(SimplexElementGroupBase):
...
@@ -177,7 +177,9 @@ class QuadratureSimplexElementGroup(SimplexElementGroupBase):
@memoize_method
@memoize_method
def
_quadrature_rule
(
self
):
def
_quadrature_rule
(
self
):
dims
=
self
.
mesh_el_group
.
dim
dims
=
self
.
mesh_el_group
.
dim
if
dims
==
1
:
if
dims
==
0
:
return
mp
.
Quadrature
(
np
.
empty
((
0
,
1
)),
np
.
empty
((
0
,
1
)))
elif
dims
==
1
:
return
mp
.
LegendreGaussQuadrature
(
self
.
order
)
return
mp
.
LegendreGaussQuadrature
(
self
.
order
)
else
:
else
:
return
mp
.
XiaoGimbutasSimplexQuadrature
(
self
.
order
,
dims
)
return
mp
.
XiaoGimbutasSimplexQuadrature
(
self
.
order
,
dims
)
...
...
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