Eawag-AppliedSystemAnalysis / Simstrat

Simstrat - 1D lake model
http://www.eawag.ch/en/department/surf/projects/simstrat/
GNU General Public License v3.0
18 stars 8 forks source link

Preprocessing Simstrat-AED2 to exclude compilation of AED2 if not present #55

Open f-baerenbold opened 2 years ago

f-baerenbold commented 2 years ago

From version 3.0 on, Simstrat always includes the biochemical model AED2. The latter can be turned on and off using a switch in the configuration file. However, if a person really only wants to use the physical part of Simstrat, it could make sense to only compile Simstrat and not worry about the compilation of AED2. This could be done using something like

ifdef __has_include(...)

endif

i.e. preprocessing statements. Currently, the AED2 part is a bit too much nested into Simstrat so to do this the code would need some refactoring.