BenjMy / pycathy_wrapper

A Python wrapper for CATHY (Catchment Hydrology) - [Camporese et al., 2010]
https://benjmy.github.io/pycathy_wrapper/
Boost Software License 1.0
6 stars 1 forks source link

Program received signal SIGSEGV: Segmentation fault - invalid memory reference. #7

Closed BenjMy closed 2 years ago

BenjMy commented 2 years ago

Version pyCATHYv0.0.1 with CATHY 1.0

The simulation runs until TIME: 1.8026E+04, then stops with an "invalid memory reference.". I checked the cathyH file but i don't see apparent inconsistency with the simulation inputs. Note that time 1.8026E+04, is the first value in the atmbc file with a negative net Precipitation/ET (i.e. -2.212e-08). Changing the value to 0 makes the simulation run until next time...

Attached (https://we.tl/t-sLFlTAlHI2) are the files to reproduce.

BenjMy commented 2 years ago

In the file soil, the parameter VGNCELL cannot be negative!

Also, in the file parm, you indicate a number of NUMVP nodes = 1 but then the corresponding node NODVP is 0. You should indicate a node number NODVP <= NNOD.