Fortran · Exception

forrtl 299 — Floating Divide-by-Zero Traps Reported

What does forrtl 299 — Floating Divide-by-Zero Traps Reported mean in Fortran?

Tallies, at program termination, how many floating-point divide-by-zero exceptions were trapped over the run — each corresponding to a finite value divided by exact zero somewhere in the program's floating-point arithmetic.

forrtl 299 — Floating Divide-by-Zero Traps ReportedIntel Fortran

Condition

Tallies, at program termination, how many floating-point divide-by-zero exceptions were trapped over the run — each corresponding to a finite value divided by exact zero somewhere in the program's floating-point arithmetic.

Fix

Add explicit zero-denominator guards at the divisions responsible, and rebuild with traceback enabled so each occurrence points at the exact line instead of only surfacing as a final count.

Related exception