A soil-plant-atmosphere model based on MAESTRA and SPA Compiles with: Intel Visual Fortran Compiler (version >10). gfortran A Makefile is provided to compile Maes* on a Mac (thanks to Martin de Kauwe and Alejandro Morales).
If nrootlayer is greater than nlayer, most of the wat*.dat files are populated with zeros. No warning is given that nrootlayer is greater than nlayer, nor is there a mention in the documentation that these values should make sense together.
1.) Edit the documention to make this explicitly clear
2.) Include a routine that compares nrootlayer to nlayer. If it is larger, set nrootlayer equal to nlayer
If nrootlayer is greater than nlayer, most of the wat*.dat files are populated with zeros. No warning is given that nrootlayer is greater than nlayer, nor is there a mention in the documentation that these values should make sense together.
1.) Edit the documention to make this explicitly clear 2.) Include a routine that compares nrootlayer to nlayer. If it is larger, set nrootlayer equal to nlayer
pseudocode:
if nrootlayer>nlayer: nrootlater=nlayer