Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LDD-for-two-phase-flow-systems
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
Show more breadcrumbs
David Seus
LDD-for-two-phase-flow-systems
Commits
26e605c3
Commit
26e605c3
authored
6 years ago
by
David Seus
Browse files
Options
Downloads
Patches
Plain Diff
debug methods except Solver solver step and run
parent
c53bdb57
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
LDDsimulation/LDDsimulation.py
+2
-2
2 additions, 2 deletions
LDDsimulation/LDDsimulation.py
with
2 additions
and
2 deletions
LDDsimulation/LDDsimulation.py
+
2
−
2
View file @
26e605c3
...
@@ -924,13 +924,13 @@ class LDDsimulation(object):
...
@@ -924,13 +924,13 @@ class LDDsimulation(object):
# overwrite what has been set by init()
# overwrite what has been set by init()
self
.
adjacent_subdomains
=
adjacent_subdomains
self
.
adjacent_subdomains
=
adjacent_subdomains
interface_of_subdomain
=
[]
interface_of_subdomain
=
[]
for
interface_ind
,
adj_doms
in
enumerate
(
adjacent_subdomains
):
for
global_
interface_ind
,
adj_doms
in
enumerate
(
adjacent_subdomains
):
# interface [i,j] and [j,i] are not counted seperately in adjacent_subdomains
# interface [i,j] and [j,i] are not counted seperately in adjacent_subdomains
# therefor we don't care wether subdomain_index == adj_doms[0] or
# therefor we don't care wether subdomain_index == adj_doms[0] or
# subdomain_index == adj_doms[1]. if subdomain_index is one of either,
# subdomain_index == adj_doms[1]. if subdomain_index is one of either,
# the interface belongs to the subdomain with this index.
# the interface belongs to the subdomain with this index.
if
np
.
isin
(
subdomain_index
,
adj_doms
,
assume_unique
=
True
):
if
np
.
isin
(
subdomain_index
,
adj_doms
,
assume_unique
=
True
):
interface_of_subdomain
.
append
(
interface_ind
)
interface_of_subdomain
.
append
(
global_
interface_ind
)
return
interface_of_subdomain
return
interface_of_subdomain
...
...
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