F90

Frank Muldoon fmuldoo at alpha2.eng.lsu.edu
Thu May 3 13:53:45 PDT 2001


I have a Fortran 90 and MPI code. I need to have my program crash if I
ever use a real, integer or an array of same without first giving a
value to it.  My code uses many dynamically allocated arrays.  Does
anyone know of a way to set the value of allocatable arrays to say a NaN
and then have some way of trapping a NaN if it is ever used.
Explicitly setting the array to NaN is not a good solution from an ease
of code readibility standpoint.  Besides one can forget to do this which
defeats the purpose.  I have found a way to do the above with statically
allocated arrays on a SP2.

Thanks,
Frank

--
Frank Muldoon
Computational Fluid Dynamics Research Group
Louisiana State University
Baton Rouge, LA 70803
225-344-7676 (h)
225-578-5217 (w)






More information about the Beowulf mailing list