I want to use some intrinsic functions and matrix operations in debugging, but failed. It looks like this:
(gdb) p tau
$12 = (( 0, 0, 0) ( -0.23499999999999999, 0.23499999999999999, 0.25) )
(gdb) p alat
$13 = 10.2631
(gdb) p tau * alat
Argument to arithmetic operation not a number or boolean.
(gdb) p tau + 1.0
Argument to arithmetic operation not a number or boolean.
(gdb) p SUM(tau)
No symbol "SUM" in current context.
According to this post it seems there is no general way to use intrinsic functions, but there may be hacks for some specific ones.
Any suggestions on how to use SUM or do matrix operations in Fortran way? Many thanks.