I'm working on implementing a user subroutine for LS-DYNA in linux Red Hat 5.11. To implement the subroutine an executable object file needs to be complied that includes the subroutine fortran code. I have a makefile that needs to be executed to create the .o file.
The problem is that the makefile was written for the Intel Fortran compiler but I only have assess to GFortran. I've already switched the compiler directory but I'm unsure what the other compiler commands do and how to execute those in GFortran. Here's the makefile:
lsdyna: dyn21.o dyn21b.o couple2other_user.o
/usr/bin/gfortran -o lsdyna init_once.o init_keywrd.o dynm.o dyn21.o dyn21b.o couple2other_user.o adummy_graph.o orderByMetis.o adummy_msc.o mscapi.o libdyna.a libbcsext4.a liblsda.a liblssecurity.a liblcpack.a libspooles.a libcparse.a libmf2.a liblsm.a liblscrypt.a libresurf.a libsfg.a libmetis.a libfemster_wrap.a libfemster_wrap2d.a libfemster_wrap1d.a libfemster.a libfemster2d.a libfemster1d.a libpfem.a libmetis.a libblas.a liblapack.a libfftw3.a libsprng.a intel64_101_libansysdp.a libdyna.a libblas.a liblapack.a libmetis.a -i-static -L/usr/X11R6/lib64 -lX11 -openmp -lstdc++ -lrt -lstdc++
dyn21.o: dyn21.f nhisparm.inc
/usr/bin/gfortran -c -w95 -zero -assume byterecl,buffered_io,protect_parens -mP2OPT_hpo_dist_factor=21 -ftz -nopad -fpp2 -openmp -i8 -r8 -DINTEL -DAdd_ -xW -fp-model precise -O2 -I. dyn21.f
dyn21b.o: dyn21b.f nhisparm.inc
/usr/bin/gfortran -c -w95 -zero -assume byterecl,buffered_io,protect_parens -mP2OPT_hpo_dist_factor=21 -ftz -nopad -fpp2 -openmp -i8 -r8 -DINTEL -DAdd_ -xW -fp-model precise -O2 -I. dyn21b.f
couple2other_user.o: couple2other_user.f
/usr/bin/gfortran -c -w95 -zero -assume byterecl,buffered_io,protect_parens -mP2OPT_hpo_dist_factor=21 -ftz -nopad -fpp2 -openmp -i8 -r8 -DINTEL -DAdd_ -xW -fp-model precise -O2 -I. couple2other_user.f