Closed MaximeVdB closed 2 years ago
Michel's LIS tests now succeed, and I re-checked the current branch by running
the Perennial, Harvest and (selected) Europe tests with both DEBUG=0 FORTRAN_EXE=0
and DEBUG=1 FORTRAN_EXE=1
for both the foss-2018a
toolchain and the singularity image
(all passed).
This PR introduces a new unit
ac_project_input
containing e.g. aProjectInput_type
derived type and aProjectInput
module variable of this type. This is used to (1) only read the PRO/PRM files once, instead of multiple times and (2) allow external programs like LIS to directly control this input data (so without having to write a PRO or PRM file).Passes the full testsuite done with both
DEBUG=0 FORTRAN_EXE=0
andDEBUG=1 FORTRAN_EXE=1
for both thefoss-2018a
toolchain and the singularity image.@mbechtold Could you check that this works as intended with LIS? As you can see, there are convenience functions like
allocate_project_input
,set_project_input
andget_project_input
inac_project_input
that should be used for this purpose. E.g.:@mbechtold So I also had a look whether the
ListProjects
file needed a similar treatment. But it seems like this file is already only used in procedures likeStartTheProgram
which are anyway only used when AquaCrop is ran as 'standalone'. So could you also check that you can simply omit thoseListProjects.txt
files when running with LIS?