lanl / LaGriT

Los Alamos Grid Toolbox (LaGriT) is a library of user callable tools that provide mesh generation, mesh optimization and dynamic mesh maintenance in two and three dimensions.
https://lanl.github.io/LaGriT/
Other
116 stars 48 forks source link

compile error for writinit.f #246

Closed millerta closed 1 year ago

millerta commented 1 year ago

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
millerta commented 1 year ago

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.