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
21 stars 11 forks source link

[FEATURE REQUEST] Add optional toggle to check if a mechanism needs a minimum KPP version #31

Closed yantosca closed 2 years ago

yantosca commented 2 years ago

I was thinking it might be a nice feature to have the ability to add an optional KPP toggle such as #MINIMUM_REQUIRED X.Y.Z so that KPP will throw an error unless you are using version X.Y.Z or higher.

For example, the CMake build system lets you specify a minimum version such as:

cmake_minimum_required (VERSION 3.13)

This might become important for models such as GEOS-Chem where we have many different versions in use. For example, if someone wanted to use a mechanism with the new #AUTOREDUCE capability that @jimmielin and @msl3v are developing, you would need to use KPP 3.0.0 (when it is ready). But if you don't want to use the #AUTOREDUCE feature then you wouldn't need to specify a minimum version.

I can work on adding this to the add-geos-chem-updates branch.

RolfSander commented 2 years ago

Good idea! Two comments:

yantosca commented 2 years ago

34 has now been merged into the development branch. We can close this now.

RolfSander commented 2 years ago

Thanks for adding the #MINVERSION feature! I added two minor commits in dev...