The model crashes at the start of the simulation during curve number (CN) initialization.
What I have checked / fixed so far:• All soil layers have valid non-zero values (bulk density, AWC, Ksat, depth).
• No soil layer has bd = 0 or awc = 0.
• Water pixels were previously mapped as soil, but I replaced them with valid “pseudo-soil” parameters to avoid zero values.
• HRUs are successfully created and the HRU summary shows valid landuse, soil, and slope distributions.
AGRL, BARR, URBN, PAST, WETW, FRST, ORCD
cntable.lum issue:The cntable.lum file (written by SWAT+ editor v3.1.0) contains landuse names such as:
rc_, sg_, pastg_, wood_, urban, farm, open_p, etc.
However, none of the HRU landuse codes (AGRL, BARR, URBN, PAST, WETW, FRST, ORCD) exist verbatim in cntable.lum.
This appears to cause the CN lookup to fail, resulting in CN = 0 and a divide-by-zero error in CURNO.
Add corresponding CN rows for AGRL, BARR, URBN, PAST, WETW, FRST, ORCD in cntable.lum,
or
Reclassify the landuse raster to match existing cntable.lum names (rc_, pastg_, wood_*, etc.) and rebuild HRUs?
I would appreciate confirmation of the correct and recommended workflow for handling this landuse–CN linkage in SWAT+.
Thank you for your time and guidance.
Best regards,
Athira
Athira:
Thank you for searching for the problem! Please send me you current txtinout folder so I can try and see what is happening.
Nancy
From: swat...@googlegroups.com <swat...@googlegroups.com>
On Behalf Of Athira K
Sent: Friday, January 23, 2026 6:13 AM
To: SWAT+ <swat...@googlegroups.com>
Subject: [SWAT+ User Group] forrtl: error (73): floating divide by zero
|
You don't often get email from 1020...@smail.iitpkd.ac.in. Learn why this is important |
--
You received this message because you are subscribed to the Google Groups "SWAT+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
swatplus+u...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/swatplus/5e828f23-8971-4913-b497-5b49262ca30en%40googlegroups.com.
Thank you very much for your response and for offering to look into the issue.
Please find my current txtinout folder attached herewith for your review.
While checking the setup, I noticed an additional issue related to land use classification. My original land use raster contains 8 classes (AGRL, FRST, URBN, ORCD, PAST, WETW, WATR, and BARR – barren land). However, in the generated landuse.lum file, only four land use classes are appearing. I applied a 5% area threshold, so I assume ORCD may have been excluded due to its small area. However, BARR (barren land) accounts for ~16% of the watershed, yet it is still not appearing in the landuse.lum file. I am unsure whether this behavior is expected or if it could be related to the runtime error.
https://drive.google.com/drive/folders/1NhKktKuDk0W8DTnqeKI3ZYIAuuZcdOwW?usp=drive_link
Thank you very much for your guidance. I look forward to your advice.
Best regards,
Athira
Athira:
The problem in the soil file (soils.sol) as listed below. I am curious of the source used for these parameters if you will share.
The hydrologic soil group (HYD_GRP) column are soil textures and should be moved to the TEXTURE column. The classification for the hydrologic soil group should be labelled A,B,C or D. The model references the curve number table for calculations from these groups.
I was able to get a successful simulation after making the changes above in this file.
Let me know if you have any questions or further troubles.
To view this discussion visit https://groups.google.com/d/msgid/swatplus/2c5d855c-7515-41e2-a703-7e9391418510n%40googlegroups.com.
Deswita: I may need your complete txtinout folder, but we can start by sending your ‘weather-sta.wgn’ file to see if I can find anything that could be causing a problem.
Thank you,
Nancy
From: swat...@googlegroups.com <swat...@googlegroups.com> On Behalf Of Deswita Jasmine
Sent: Tuesday, February 3, 2026 10:33 PM
To: SWAT+ <swat...@googlegroups.com>
Subject: [SWAT+ User Group] forrtl: error (73): floating divide by zero
|
You don't often get email from djas...@gmail.com. Learn why this is important |
--
You received this message because you are subscribed to the Google Groups "SWAT+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
swatplus+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/swatplus/9428236e-9d22-4095-a5fc-ca0a8bd623f6n%40googlegroups.com.