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.
I just noticed that my mail to the list of Feb 18 bounced. Sending again. I don't know yet what the problem was, perhaps it's to do with the new server on which the list is hosted. If someone else sent mails to the list recently and got no replies, you might want to check in the archives if it arrived ...
Wood David wrote:
[something which his company claims we cannot copy]
I cannot reproduce a problem with your code fragment (in particular, the declaration of the arrays etc. might be relevant).
Could you please send a complete (minimal) program that exhibits the problem -- preferably in a way that we can use it for our test suite? (If you don't have access to another email account, you can use the upload form on the GPC web site and state in the comment field whether we may distribute the code.)
Frank