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

[PULL REQUEST] Add support for compiling KPP on MacOS (Closes #15) #17

Closed yantosca closed 2 years ago

yantosca commented 2 years ago

This PR addresses the problem described in #15. The root problem is that on MacOS, #include <malloc.h> does not work, but #include <malloc/malloc.h> does.

We have modified the Makefile.defs by adding an if block that sets the C-preprocessor switch MACOS. This switch is used to toggle an #if block that selects the proper #include statement for either MacOS or Linux platforms where needed.

We have also updated the .gitignore files in the ci-tests/ folders to ignore output from CI-tests. These are stored in files such as _results.m.

yantosca commented 2 years ago

The CI-tests error seems to be related to the error trap that I put in for FLEX_LIB_DIR. I will remove this and see if the tests pass.