compdyn / partmc

Particle-resolved stochastic atmospheric aerosol model
http://lagrange.mechse.illinois.edu/partmc/
GNU General Public License v2.0
27 stars 15 forks source link

Use set of camp_state_t objects for multi-cell solving #119

Closed mattldawson closed 4 years ago

mattldawson commented 4 years ago

The camp_state_t is confusing right now, because there is a state array with all cells states in a giant array, but a single environment object. The environmental state of each cell needs set individually in a very confusing way. Change the camp_core_t to accept either a single camp_state_t for single-cell solving or an array of camp_state_t for multi-cell solving

mattldawson commented 4 years ago

Decided instead to have just a single camp_state_t object, but let it contain an array of env_state_t objects. This way the multi-cell system can have contiguous state_var and env_state_var arrays for all cells.