Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lbmpy
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itischler
lbmpy
Commits
aa97a240
Commit
aa97a240
authored
4 years ago
by
Michael Kuron
Browse files
Options
Downloads
Patches
Plain Diff
Delete createindexlistcython.pyx
parent
1003e162
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
lbmpy/boundaries/createindexlistcython.pyx
+0
-63
0 additions, 63 deletions
lbmpy/boundaries/createindexlistcython.pyx
with
0 additions
and
63 deletions
lbmpy/boundaries/createindexlistcython.pyx
deleted
100644 → 0
+
0
−
63
View file @
1003e162
# Workaround for cython bug
# see https://stackoverflow.com/questions/8024805/cython-compiled-c-extension-importerror-dynamic-module-does-not-define-init-fu
WORKAROUND
=
"
Something
"
import
cython
ctypedef
fused
IntegerType
:
short
int
long
long
long
unsigned
short
unsigned
int
unsigned
long
@cython.boundscheck
(
False
)
@cython.wraparound
(
False
)
def
create_boundary_index_list_2d
(
object
[
IntegerType
,
ndim
=
2
]
flag_field
,
int
nr_of_ghost_layers
,
IntegerType
boundary_mask
,
IntegerType
fluid_mask
,
object
[
int
,
ndim
=
2
]
stencil
):
cdef
int
xs
,
ys
,
x
,
y
cdef
int
dirIdx
,
num_directions
,
dx
,
dy
xs
,
ys
=
flag_field
.
shape
boundary_index_list
=
[]
num_directions
=
stencil
.
shape
[
0
]
for
y
in
range
(
nr_of_ghost_layers
,
ys
-
nr_of_ghost_layers
):
for
x
in
range
(
nr_of_ghost_layers
,
xs
-
nr_of_ghost_layers
):
if
flag_field
[
x
,
y
]
&
fluid_mask
:
for
dirIdx
in
range
(
1
,
num_directions
):
dx
=
stencil
[
dirIdx
,
0
]
dy
=
stencil
[
dirIdx
,
1
]
if
flag_field
[
x
+
dx
,
y
+
dy
]
&
boundary_mask
:
boundary_index_list
.
append
((
x
,
y
,
dirIdx
))
return
boundary_index_list
@cython.boundscheck
(
False
)
@cython.wraparound
(
False
)
def
create_boundary_index_list_3d
(
object
[
IntegerType
,
ndim
=
3
]
flag_field
,
int
nr_of_ghost_layers
,
IntegerType
boundary_mask
,
IntegerType
fluid_mask
,
object
[
int
,
ndim
=
2
]
stencil
):
cdef
int
xs
,
ys
,
zs
,
x
,
y
,
z
cdef
int
dirIdx
,
num_directions
,
dx
,
dy
,
dz
xs
,
ys
,
zs
=
flag_field
.
shape
boundary_index_list
=
[]
num_directions
=
stencil
.
shape
[
0
]
for
z
in
range
(
nr_of_ghost_layers
,
zs
-
nr_of_ghost_layers
):
for
y
in
range
(
nr_of_ghost_layers
,
ys
-
nr_of_ghost_layers
):
for
x
in
range
(
nr_of_ghost_layers
,
xs
-
nr_of_ghost_layers
):
if
flag_field
[
x
,
y
,
z
]
&
fluid_mask
:
for
dirIdx
in
range
(
1
,
num_directions
):
dx
=
stencil
[
dirIdx
,
0
]
dy
=
stencil
[
dirIdx
,
1
]
dz
=
stencil
[
dirIdx
,
2
]
if
flag_field
[
x
+
dx
,
y
+
dy
,
z
+
dz
]
&
boundary_mask
:
boundary_index_list
.
append
((
x
,
y
,
z
,
dirIdx
))
return
boundary_index_list
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