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

Better encapsulation of the hydrodynamic variables #14

Closed
schmie opened this issue Jul 9, 2015 · 3 comments
Closed

Better encapsulation of the hydrodynamic variables #14

schmie opened this issue Jul 9, 2015 · 3 comments

Comments

@schmie
Copy link
Contributor

schmie commented Jul 9, 2015

Reported by hywel on 7 Oct 2011 16:58 UTC
Before the collision operator had to go through and set the values of f_neq on the !HydrodynamicVars object. Now the kernels do this, and the collisions can only read the vars. Pointer look-ups avoided by using a struct to hold the 15 f-values.

Regression test passes (modulo images; see ticket:4), unit tests pass.

Assigning to Rupert for review.

@schmie
Copy link
Contributor Author

schmie commented Jul 9, 2015

Modified by hywel on 13 Oct 2011 11:40 UTC

@schmie schmie added this to the 0.1 milestone Jul 9, 2015
@schmie
Copy link
Contributor Author

schmie commented Jul 9, 2015

Comment by rupert on 13 Oct 2011 13:00 UTC
This is a small but definite improvement as described above. I do have reservations about the larger design which I will log another ticket about for the next milestone.

One point: In Code/lb/kernels/LBGK.h, I don't see why the !HydroVars template is being specialized on LBGK to be the same as the default. If this is not an accidental code duplication, please explain why.

Otherwise, good to go.

@schmie schmie assigned hcarver and unassigned rupertnash Jul 9, 2015
@schmie
Copy link
Contributor Author

schmie commented Jul 9, 2015

Comment by hywel on 13 Oct 2011 14:54 UTC
Fixed some stuff to do with related changes in ticket 8. Mainly applying the same changes to LBGKNN that were necessary for LBGK and Entropic kernels.

Good spot on the unnecessary LBGK !HydroVars. Now removed.

Pushed as changeset 499713e223a6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants