Fortran runtime error: Allocatable argument 'domains' is not allocated #567
-
|
Hi, I have been trying to get mizuRoute to run for a simple case (the Rhône river basin for a runtime of years) on the ALICE HPC of Leiden University, but I am getting stuck at the listed error. As my input, I'm using the MERIT rivers and basins topology (which contains 2114 river segments all routing to 1 outlet), and input runoff data from watergap, formatted to netCDF using easymore. I've used the same ID's for both hru and seg, as MERIT has a 1-1 relation between basins and river segments. Below is the full output of mizuRoute. I've installed mizuRoute 3.0.0 using the given instructions on the wiki. Best, |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 8 replies
-
|
Hi, Sorry for the error. This error looks familiar, but I thought this has been fixed, but possibly not. I don't catch anything suspicious for your compiling, setup. This issue is from the computation of river network topology using MERIT data, and not from your runoff input. I have merit network so I will subset to Rhône basin and look into this. One possibly easy thing for you to try is to use different MPI tasks. How many MPI tasks are you using? you could use just one (so just run it as a serial code) or two. if you are running it on HPC or cluster, you could try increase MPI tasks. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, I will try to look today or tomorrow. |
Beta Was this translation helpful? Give feedback.
-
|
@arthurronner 1- Perhaps an additional check would be to verify that in the 2- Make sure the last 3- Another (possibly less relevant) suggestion is to confirm that the variable mappings are consistent, i.e.: and that these effectively point to the same variables, or three identical variables. Depending on what Naoki suggests after looking into this, I can also create a new ntopo file for your case, so it can be used for comparison with your ntopo. I need to know the most downstream of your segment, of course. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @arthurronner, I tested with my own MERIT network including only Rhône river. I did not get any error by running with one core (just executed it on terminal like you did). I tried using 2, 3, and 4 cores. So something may be going on with your network as Shervan said. If you don't mind sharing your network and runoff data, I am happy to look. You can send it to my email (mizukami@ucar.edu). |
Beta Was this translation helpful? Give feedback.
-
|
Hi @arthurronner, For you, you can try MODE=fast in Makefile and hope this gets you going. |
Beta Was this translation helpful? Give feedback.
-
|
Ok. One error I found in rhone_rivertopo.nc. The outlet reach of rhone river: segId=21005420. This should link to a catchment hru (hruId=21005420). So hruSegId for this hru should be 21005420, but now it is missing values (-9999). So now, outlet hru 21005420 is not draining into any river reach (this situation may be valid for some - there are some hrus that are not connected to any rivers, but not for your case). I believe if you fix this, you should be able to run. But going through this, I found some logic error in handing hrus not connected to rivers during domain decomposition, so I will have to fix the bug. |
Beta Was this translation helpful? Give feedback.
-
|
Summary: Although rhone_rivertopo.nc has the error in outlet hru (the hru was not connected to river reach), the code was supposed to run. There is a bug in the code and PR #572 should fix this. |
Beta Was this translation helpful? Give feedback.
Ok. One error I found in rhone_rivertopo.nc.
The outlet reach of rhone river: segId=21005420. This should link to a catchment hru (hruId=21005420). So hruSegId for this hru should be 21005420, but now it is missing values (-9999). So now, outlet hru 21005420 is not draining into any river reach (this situation may be valid for some - there are some hrus that are not connected to any rivers, but not for your case). I believe if you fix this, you should be able to run.
But going through this, I found some logic error in handing hrus not connected to rivers during domain decomposition, so I will have to fix the bug.