KineticPreProcessor / KPP

The KPP kinetic preprocessor is a software tool that assists the computer simulation of chemical kinetic systems
GNU General Public License v3.0
22 stars 11 forks source link

[FEATURE REQUEST] Save KPP global variables into a derived type object #11

Open yantosca opened 3 years ago

yantosca commented 3 years ago

This would be for much later down the road. Right now KPP global variables are referenced by F90 USE statements. But there may be some model implementations (such as in WRF) where several chemistry domains get solved simultaneously. For such a case like that, it would be preferable to have all KPP-generated module variables stored in a F90 derived type object so that the model could instantiate as many instances of the object as there are chemistry domains being solved simulataneously.

This would be a "nice to have" but is not a high priority. I just wanted to list this here so that we don't lose sight of it.

jimmielin commented 2 years ago

Looks like this feature will be useful for MATLAB as well (see #45) as suggested by @JPSTUTZ.

We can move towards using structure arrays for MATLAB, which is the equivalent for derived types.