lanl/LaGriT

compile error for writinit.f

millerta opened this issue · 1 comments

This error occurs after cmake and make commands.

gfortran -fcray-pointer -fdefault-integer-8 -m64 -Dlinx64 -O -I/usr/lib/../include  -c -o objects/writinit.o writinit.f
writinit.f:244:57:

       write (tmp, '(i3,i3,i3)') v_major, v_minor, v_patch
                                                         1
Error: Symbol ‘v_patch’ at (1) has no IMPLICIT type
Makefile:130: recipe for target 'objects/writinit.o' failed
make[1]: *** [objects/writinit.o] Error 1
make[1]: Leaving directory '/project/eesdev/tam/LaGriT-build/src'
Makefile:187: recipe for target 'before' failed
make: *** [before] Error 2

This error occurs when cmake is interrupted or uses corrupted files to try and create lagrit.h from the template lagrit.h.in which is needed by writinit.f

This is fixed by running cmake and make in an empty build directory.
It would be nice to detect this type of error and warn the user.