Open tnbernard opened 2 months ago
One potential disadvantage of this approach is that there may be a lot of code duplication between gk_species_static_new
and gk_species_new
. But perhaps the common blocks can be canned and called equally by both functions.
We propose the following to handle static gk and gk_neut species (idea courtesy of @JunoRavin):
Right now, we are having to introduce if statements in a bunch of places and some of these places are not necessarily sequential (don’t allocate certain internal arrays, don’t allocate certain updaters, etc) What we should do:
a)
gk_species_static_new
andgk_neut_species_static_new
b)gk_species_static_rhs
andgk_neut_species_static_rhs
This has a couple of advantages:
The DR will be updated with a link to a branch once development on this task has begun.