geco-bern / rsofun

Implements the Simulating Optimal FUNctioning framework for site-scale simulations of ecosystem processes, including model calibration. It contains Fortran 90 modules for the P-model, SPLASH, and BiomeE models.
https://geco-bern.github.io/rsofun/
GNU General Public License v3.0
25 stars 29 forks source link

Fix parallel make #266

Closed marcadella closed 5 days ago

fabern commented 1 day ago

@marcadella could you explain (briefly) what these changes did? It looks like you could simplify the Make file by a lot.

marcadella commented 1 day ago

Firstly I removed Makevars.win because the compilation process is platform agnostic so there is no reason to duplicate the makefile specifically for Windows. Secondly, I removed half of the targets because they were not needed in the sense the the recipe for getting the .o also produces the .mod, so having a target for the .mod files was not needed. Thirdly I added a few targets which were missing and cause parallel make to fail.