I'm getting a new compile time error (error: arithmetical overflow ) with this previously ok bit of code:

 

         FOR I := -Clutter_max_width TO Clutter_max_width DO

            Spectral_purity[I] := Spec_purity_level / (1 + (SQR(I) / Width_sqrd));

 

         Spectral_purity[0] := 1;

 

All the variables and arrays use type double, except i which is an integer.

The error is reported at the last code line, but I guess it may stem from the previous line.

I don't understand why gpc should report an arithmetic overflow error at compile-time.  This is normally a run-time error!

Any ideas?

 

Regards

David Wood

 

The Information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s).
For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful.
Emails and other electronic communication with QinetiQ may be monitored.  Calls to QinetiQ may be recorded for quality control, regulatory and monitoring purposes.