gfortran and fedeas code
Moderators: silvia, selimgunay, Moderators
gfortran and fedeas code
Hi,
I am trying to compile the fedeas & drain code and I have the gfortran compiler (g77 is no longer default). Is anyone having any luck with this? I got a bit further using
gforttran -ffree-form
but still have problems with some of the drain .f files.
peace,
alisa
I am trying to compile the fedeas & drain code and I have the gfortran compiler (g77 is no longer default). Is anyone having any luck with this? I got a bit further using
gforttran -ffree-form
but still have problems with some of the drain .f files.
peace,
alisa
gfortran - not quite ready for primetime
OK, I was able to workaround by running f2c on the fedeas and drain files.
Other things I had to do to make it go because of that:
I added some things to CFLAGS becuase of it:
-L$(HOME)/srcf2c/libf2c/libf2c.a \
-lf2c -I$(HOME)/srcf2c/libf2c
And I changed -lg2c to -lgfortran here:
MACHINE_NUMERICAL_LIBS = -lm -lgfortran \
which is needed to make the lapack stuff compile.
Other things I had to do to make it go because of that:
I added some things to CFLAGS becuase of it:
-L$(HOME)/srcf2c/libf2c/libf2c.a \
-lf2c -I$(HOME)/srcf2c/libf2c
And I changed -lg2c to -lgfortran here:
MACHINE_NUMERICAL_LIBS = -lm -lgfortran \
which is needed to make the lapack stuff compile.
i can't find the problem with the original files.
i have downloaded gcc-4.1.1, both gcc and gfortran bzipped tarballs.
configured with
./configure --enable-languages=all --disable-shared
modified the Makefile.def
CC++ = /usr/local/bin/g++
CC = /usr/local/bin/gcc
FC = /usr/local/bin/gfortran
and added the -lgfortran to list of libs.
(the modified Makefile.def, I have placed in MAKES/Makefile.def.gcc4.1.1)
I have checked out a new version of OpenSees, compiled and linked and no problems
i have downloaded gcc-4.1.1, both gcc and gfortran bzipped tarballs.
configured with
./configure --enable-languages=all --disable-shared
modified the Makefile.def
CC++ = /usr/local/bin/g++
CC = /usr/local/bin/gcc
FC = /usr/local/bin/gfortran
and added the -lgfortran to list of libs.
(the modified Makefile.def, I have placed in MAKES/Makefile.def.gcc4.1.1)
I have checked out a new version of OpenSees, compiled and linked and no problems
gfortran
Thanks, Frank. It must be my version (4.1.0)
Will try the upgrade.
Will try the upgrade.