Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lb nodes generator #2917

Merged
merged 4 commits into from
Jun 17, 2019
Merged

Lb nodes generator #2917

merged 4 commits into from
Jun 17, 2019

Conversation

RudolfWeeber
Copy link
Contributor

@KaiSzuttor
This also moves lbfluid(cpu).stress to the base class since it also applies to lbgpu.

@fweik fweik requested a review from KaiSzuttor June 14, 2019 14:15
Copy link
Member

@KaiSzuttor KaiSzuttor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the unnecessary loop in the test, besides that LGTM

for k in range(n_nodes):
lb_nodes.append(self.lbf[i, j, k])
for n in self.lbf.nodes():
lb_nodes.append(n)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can omit this step now, just use the generator directly

@codecov
Copy link

codecov bot commented Jun 17, 2019

Codecov Report

Merging #2917 into python will decrease coverage by <1%.
The diff coverage is 88%.

Impacted file tree graph

@@          Coverage Diff           @@
##           python   #2917   +/-   ##
======================================
- Coverage      83%     83%   -1%     
======================================
  Files         520     520           
  Lines       26923   26924    +1     
======================================
  Hits        22444   22444           
- Misses       4479    4480    +1
Impacted Files Coverage Δ
src/core/grid_based_algorithms/lb_interface.cpp 74% <88%> (-1%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3f13a36...d9f6b27. Read the comment docs.

@KaiSzuttor
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request Jun 17, 2019
2917: Lb nodes generator r=KaiSzuttor a=RudolfWeeber

@KaiSzuttor
This also moves lbfluid(cpu).stress to the base class since it also applies to lbgpu.

 

Co-authored-by: Rudolf Weeber <[email protected]>
Co-authored-by: Kai Szuttor <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jun 17, 2019

Build succeeded

@bors bors bot merged commit d9f6b27 into espressomd:python Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants