From: Christoph P. <cpiefke@Koraktor> - 2013-07-16 11:11:24
|
Hi there Tom, I was wondering, if it is still possible to use asserts via 'use Assert_mod' somewhere in my own code. I tried it just by plugging it in the following way and I got an error: <code> use assert_mod call assertEqual(A,B,tolerance=1.0d-10) </code> forrtl: severe (153): allocatable array or pointer is not allocated Image PC Routine Line Source o1.x 00000000006BF67E Unknown Unknown Unknown o1.x 00000000006BE116 Unknown Unknown Unknown o1.x 000000000067C962 Unknown Unknown Unknown o1.x 000000000063762B Unknown Unknown Unknown o1.x 0000000000662363 Unknown Unknown unknown o1.x 000000000060800C privateexception_ 138 Exception.F90 o1.x 0000000000607458 privateexception_ 123 Exception.F90 o1.x 000000000060E9AC exception_mod_mp_ 371 Exception.F90 o1.x 0000000000587410 sertcomplex_modas 9768 AssertComplex.F90 o1.x 0000000000586DC5 assertcomplex_mod 9732 AssertComplex.F90 o1.x 0000000000584921 assertcomplex_mod 9662 AssertComplex.F90 And a following question: Could it be possibly done to make the assertion throw a warning instead of an error? Kind regards, Chris |