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
d3e266d6
Commit
d3e266d6
authored
Jun 09, 2021
by
Markus Holzer
Browse files
testing with eq in base class
parent
b76d82a2
Pipeline
#32568
failed with stage
in 8 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lbmpy/boundaries/boundaryconditions.py
View file @
d3e266d6
...
...
@@ -79,6 +79,11 @@ class LbBoundary:
def
name
(
self
,
new_value
):
self
.
_name
=
new_value
def
__eq__
(
self
,
other
):
if
isinstance
(
other
,
type
(
self
)):
return
self
.
__dict__
==
other
.
__dict__
return
False
# end class Boundary
...
...
@@ -98,10 +103,7 @@ 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
)
# end class NoSlip
...
...
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