Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Bauer
lbmpy
Commits
db9b81e6
Commit
db9b81e6
authored
Jun 09, 2021
by
Markus Holzer
Browse files
Delete hash and equal
parent
6cf0ce87
Pipeline
#32563
failed with stage
in 28 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lbmpy/boundaries/boundaryconditions.py
View file @
db9b81e6
...
...
@@ -99,15 +99,6 @@ class NoSlip(LbBoundary):
def
__call__
(
self
,
f_out
,
f_in
,
dir_symbol
,
inv_dir
,
lb_method
,
index_field
):
return
Assignment
(
f_in
(
inv_dir
[
dir_symbol
]),
f_out
(
dir_symbol
))
def
__hash__
(
self
):
return
hash
(
self
.
name
)
def
__eq__
(
self
,
other
):
if
not
isinstance
(
other
,
NoSlip
):
return
False
return
self
.
name
==
other
.
name
# end class NoSlip
...
...
@@ -517,10 +508,6 @@ class NeumannByCopy(LbBoundary):
return
[
Assignment
(
f_in
(
inv_dir
[
dir_symbol
]),
f_out
(
inv_dir
[
dir_symbol
])),
Assignment
(
f_out
[
neighbour_offset
](
dir_symbol
),
f_out
(
dir_symbol
))]
def
__hash__
(
self
):
# All boundaries of these class behave equal -> should also be equal
return
hash
(
"NeumannByCopy"
)
# end class NeumannByCopy
...
...
@@ -552,9 +539,5 @@ class StreamInConstant(LbBoundary):
neighbour_offset
=
NeighbourOffsetArrays
.
neighbour_offset
(
dir_symbol
,
lb_method
.
stencil
)
return
[
Assignment
(
f_in
(
inv_dir
[
dir_symbol
]),
self
.
constant
),
Assignment
(
f_out
[
neighbour_offset
](
dir_symbol
),
self
.
constant
)]
def
__hash__
(
self
):
# All boundaries of these class behave equal -> should also be equal
return
hash
(
"StreamInConstant"
)
# end class StreamInConstant
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment