I compiled and created library files with GFORTRAN and linked..
gfortran -c -Ofast -frecursive NEC42_MOD.f
gfortran -c -Ofast -fno-automatic NEC4MODEL.F
gfortran -c -Ofast -fno-automatic SOMGN3_GF.f
gfortran -c -Ofast -fno-automatic GASYN4.F
gfortran -c -Ofast -fno-automatic GN2GAsy.f
gfortran -c -Ofast -fno-automatic SOMGN2_GF.f
gfortran -c -Ofast -fno-automatic SOMLIB.F
gfortran -c -Ofast -frecursive Nec4d42_GF.f
gfortran -o NEC4D42DCL -static *.o liblapack.a libblas.a
The program works fine but I am disappointed with the calculation speed. I have seen it do much better. I see where you can download pre-built libraries, but how to you link them with the example above? The downloaded files are BLAS.LIB and LAPACK.LIB.
Thanks in advance,
Jim