permamodel / Snow_BMI_Fortran

This is a simple snow model with BMI (Basic Model Interface of CSDMS) in Fortran cooperatively-developed by Kang Wang (University of Colorado Boulder), Ross Brown (Environment Canada), and Bruce Brasnett (Canadian Meteorological Centre). It's an empirical algorithm to melt snow according to the surface temperature and increase snow depth according to the precipitation that has fallen since the last analysis time.
Apache License 2.0
2 stars 1 forks source link

Modify build process #1

Closed mdpiper closed 5 years ago

mdpiper commented 5 years ago

This PR contains a modification to the build process: instead of building a separate shared library for the Fortran BMI spec, the spec file "bmi.f90" is copied into the same directory as the snow model BMI, and they're built together. This simplifies the build process, and prevents a possible collision with another BMI-ed Fortran model if they're installed in the same location.

The PR also includes a few minor modifications to the snow model BMI and its tests and examples to ensure that they all pass on Linux and macOS.