Skip to content

Conversation

@allegroLeiden
Copy link
Contributor

In stateq.c the part of the matrix involving collision coefficients does not depend on the results of getjbar() and thus has been moved outside the loop now starting at line 141 (old line 45) in stateq.c. This results in a slight speedup.

In stateq.c I moved the function getmatrix() to before stateq(), which allows its template to be removed from lime.h.
In stateq.c the part of the matrix involving collision coefficients does not depend on the results of getjbar() and thus has been moved outside the loop now starting at line 141 (old line 45) in stateq.c. This results in a slight speedup.
@allegroLeiden allegroLeiden merged commit fdfaf98 into lime-rt:master Apr 21, 2017
@allegroLeiden allegroLeiden deleted the quicker_stateq branch April 21, 2017 08:50
@tlunttil
Copy link
Contributor

Late to this party, but couldn't you have done also the collision partner looping in getFixedMatrix? Why do you need to pass on (possibly) several collPartMat which are then summed together when you could've already done that in getFixedMatrix? Am I not seeing something?

@allegroLeiden
Copy link
Contributor Author

Good point, never thought of it. Damn you Tuomas, why do you always make me feel so dumb? :) We could also maybe replace the 'Initialize matrix with zeros' with initializing them with the collPart values.

@tlunttil
Copy link
Contributor

Maybe also take lines 90-96 out of getMatrix, as you commented in #177.

@tlunttil
Copy link
Contributor

Anyway, I'll try to cobble up something.

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.

3 participants