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
88506f31
Commit
88506f31
authored
9 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Connection applier: Do not assume one-to-one group mapping between 'from' and 'to'
parent
7bd4e678
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
meshmode/discretization/connection/__init__.py
+4
-2
4 additions, 2 deletions
meshmode/discretization/connection/__init__.py
with
4 additions
and
2 deletions
meshmode/discretization/connection/__init__.py
+
4
−
2
View file @
88506f31
...
@@ -371,9 +371,11 @@ class DiscretizationConnection(object):
...
@@ -371,9 +371,11 @@ class DiscretizationConnection(object):
if
vec
.
shape
!=
(
self
.
from_discr
.
nnodes
,):
if
vec
.
shape
!=
(
self
.
from_discr
.
nnodes
,):
raise
ValueError
(
"
invalid shape of incoming resampling data
"
)
raise
ValueError
(
"
invalid shape of incoming resampling data
"
)
for
i_tgrp
,
(
tgrp
,
sgrp
,
cgrp
)
in
enumerate
(
for
i_tgrp
,
(
tgrp
,
cgrp
)
in
enumerate
(
zip
(
self
.
to_discr
.
groups
,
self
.
from_discr
.
groups
,
self
.
groups
)):
zip
(
self
.
to_discr
.
groups
,
self
.
groups
)):
for
i_batch
,
batch
in
enumerate
(
cgrp
.
batches
):
for
i_batch
,
batch
in
enumerate
(
cgrp
.
batches
):
sgrp
=
self
.
from_discr
.
groups
[
batch
.
from_group_index
]
if
not
len
(
batch
.
from_element_indices
):
if
not
len
(
batch
.
from_element_indices
):
continue
continue
...
...
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