Reduce Global Variables in the C backend #373
Labels
context: C backend
Changes occur predominantly in the C code
context: v4-prep
This issue regards changes to the v4-prep branch
type: refactor
Code refactoring / restyling for internal benefit
There are a large amount of global variables throughout the backend which are used across multiple files. This makes the package rely on the structure of including all
.c
files inGenerateIC.c
, and makes it difficult to debug/develop the backend. We should separate these into a few cases:ComputeX
function and passed further down.static
globals to avoid them being used in other filesThis should be closely related to a re-think of how we pass in the parameter structures from the wrapper (#TBD), which are currently declared separately in several files e.g
astro_params_ps
and broadcast manually when needed. This can result in several issues if one is not careful in if/when they broadcast (and we should never expect a user to keep track of this).The text was updated successfully, but these errors were encountered: