mHM terminates without returning an error #106
|
Dear mHM community, I am running mHM for the first time and I encountered a case where the model terminates quietly without returning an error. The answer that was given to a similar case in the discussion did not appear to be clear (at least to me). I would appreciate your assistance to get past this step. I have attached the Thanks! |
Replies: 9 comments 7 replies
|
It seems the problem is related to mRM. As a first attempt, could you replace the "0" values in your fdir.asc file with -9999? Vinicius B. |
|
Hi @klekarkar I have the following suggestions for debugging:
Cheers |
|
Dear @diegodinamarca,
Here is an example of how I queue mHM to run on a HPC I put this code in a bash file and then i run this file on the terminal. I hope this helps |
Title: v5.13.2 stops at mRM initialization when testing routing with dummy gaugeHello, I need help with this. I am working with mHM v5.13.2 on Ubuntu and setting up a custom single-domain model. My hydrological and routing resolutions are both 0.05° (equal resolutions). The model runs when routing is turned off, so the general domain setup, forcings, and hydrological configuration seem fine. I then wanted to test routing before moving on to calibration, so I enabled routing and added a dummy gauge. I also switched several output variables to However, when routing is enabled, the model stops during mRM initialization with the following error: ***ERROR: mhm.nml: ID -9999 of evaluation gauge 1 for subdomain 1 is not defined! This happens after the model reads the namelists successfully and confirms that hydrological and routing resolutions are equal. So in summary:
|
|
Hi @joshfaf, Good luck with your project. |
|
I suspect the error is because the first value of your idgauges file is a float not an integer. Open the file and check that the first value is e.g. 0 and not 0.0 or -9999 not -9999.0. Good luck |
|
Hello @klekarkar , Thank you for your response. I checked and corrected several possible causes that I suspected, but the crash still persists. So far I verified:
The model now successfully reads config, morpho data, routing, gauges, forcing data, and starts MPR, then crashes (attached) Could hidden issues in morpho inputs (landcover / LAI / geology / raster values / categorical ranges) be a possible cause, even though they are read successfully? Would you recommend any specific checks for morpho files used during MPR? |
|
Hello @klekarkar, I wanted to share an update on the issue above. The problem was not related to the general model setup, but specifically to the routing configuration. The run failed with "processCase(8) = 1", but completed successfully when I changed it to "processCase(8)" to either "2" or "3". Thank you for your input. |








Hi @klekarkar
I have the following suggestions for debugging:
fdir.processCase(8) = 0inmhm.nml. And then share the outputConfigFile.loghere.Cheers
Pallav