Hi Arantxa,
The error most likely indicates that you have a zero CN value somewhere in the HRUs. The curve number CN is used to estimate runoff and depends on the hydrologic condition of the soil (I to IV, or A to D, with D being poorly drained soil). CN2 is the number for hydrologic condition II in SWAT+. The potential maximum soil moisture retention after runoff starts is calculated from the CN value where
If CN is zero, this would give a floating divide by zero error when calculating S. Please check your HRU files (in the sqlite database) for values of zero...
Regards,
Maarten Waterloo
Acacia Water