Paul and Mecej4,
I am developing an updated version of the program, which demonstrates the FPE error, associated with calling problem of call mask_underflow@(). This program, can compile and run with /check.
If I call mask_underflow@() at the start of the program, then I get problems at the end of the testing, when outputting a valid real8 number, after outputting an integer8 number. There were previous writing of real*8 values that did not generate an error, and all numbers being reported are valid numbers ( in the range 0.01 to 1000). I am not getting the error during the test, associated with RedCol_Stats(), but at the reporting stage at the end of the main do ieq loop.
Alternatively, If I first call mask_underflow@() at the start of the main loop, then call unmask_underflow@ at the end of the main loop, before the write statements, then there is no error generated. Ftn95 documentation recommends that call mask_underflow@() be the first executable statement?
I also tried a test in the inner loop: if ( abs(Col(Jeq+I0)) < 1.0d-90 ) Col(Jeq+I0) = 0 This removes most small numbers being generated in colsol and removes FP Exceptions, but only for 1 of the solution methods. It may be that a well conditioned finite element matrix will not generate FPE's. This is disappointing, as I was hoping a source of this cronic delay problem may have been found. I shall send the link in a pm, together with documentation of how to generate the error.
John