diff -Nurd ARPACK/ARmake.inc ARPACK.patched/ARmake.inc --- ARPACK/ARmake.inc 1996-04-26 15:12:57.000000000 -0400 +++ ARPACK.patched/ARmake.inc 2011-09-15 11:32:22.000000000 -0400 @@ -34,6 +34,11 @@ # PLAT = SUN4 # +# The communication library ( need for parallel library only ) +# Current availible platforms are: BLACS or MPI +# +COMMLIB = MPI +# # %------------------------------------------------------% # | The directories to find the various pieces of ARPACK | # %------------------------------------------------------% @@ -42,6 +47,8 @@ LAPACKdir = $(home)/LAPACK UTILdir = $(home)/UTIL SRCdir = $(home)/SRC +PSRCdir = $(home)/PARPACK/SRC/$(COMMLIB) +PUTILdir = $(home)/PARPACK/UTIL/$(COMMLIB) # DIRS = $(BLASdir) $(LAPACKdir) $(UTILdir) $(SRCdir) # @@ -51,17 +58,22 @@ # | NOTE: ARPACK assumes the use of LAPACK version 2 codes. | # %-------------------------------------------------------------------% # -#DIRS = $(UTILdir) $(SRCdir) +DIRS = $(UTILdir) $(SRCdir) # # %---------------------------------------------------% # | The name of the libraries to be created/linked to | # %---------------------------------------------------% # -ARPACKLIB = $(home)/libarpack_$(PLAT).a -LAPACKLIB = -BLASLIB = +ARPACKLIB = $(home)/libarpack.a +ARPACKDYLIB = $(home)/libarpack.dylib +PARPACKLIB = $(home)/libparpack.a +LAPACKLIB = @LAPACKLIB@ +BLASLIB = @BLASLIB@ # ALIBS = $(ARPACKLIB) $(LAPACKLIB) $(BLASLIB) +MPILIBS = +PLIBS = $(PARPACKLIB) $(ALIBS) $(MPILIBS) + # # # %---------------------------------------------------------% @@ -91,9 +103,9 @@ # | Command to build .o files from .f files. | # %-------------------------------------------% # -.f.o: - @$(ECHO) Making $@ from $< - @$(FC) -c $(FFLAGS) $< +#.f.o: +# @$(ECHO) Making $@ from $< +# @$(FC) -c $(FFLAGS) $< # # %-----------------------------------------% # | Various compilation programs and flags. | @@ -101,10 +113,10 @@ # | for your system. | # %-----------------------------------------% # -FC = f77 -FFLAGS = -O -cg89 +FC = FINKPREFIX/bin/gfortran-fsf-4.6 +FFLAGS = -O -fPIC -single_module @FF2C@ -LDFLAGS = +LDFLAGS = @LDFLAGS@ CD = cd ECHO = echo @@ -112,7 +124,7 @@ LN = ln LNFLAGS = -s -MAKE = /bin/make +MAKE = make RM = rm RMFLAGS = -f diff -Nurd ARPACK/UTIL/second.f ARPACK.patched/UTIL/second.f --- ARPACK/UTIL/second.f 1995-10-02 14:56:44.000000000 -0400 +++ ARPACK.patched/UTIL/second.f 2011-09-15 10:53:32.000000000 -0400 @@ -20,15 +20,15 @@ REAL TARRAY( 2 ) * .. * .. External Functions .. - REAL ETIME - EXTERNAL ETIME +* REAL ETIME +* EXTERNAL ETIME * .. * .. Executable Statements .. * - T1 = ETIME( TARRAY ) - T = TARRAY( 1 ) - +* T1 = ETIME( TARRAY ) +* T = TARRAY( 1 ) + T = 1 RETURN * * End of SECOND diff -Nurd ARPACK/Makefile ARPACK.patched/Makefile --- ARPACK/Makefile 1996-09-24 10:55:31.000000000 -0400 +++ ARPACK.patched/Makefile 2011-09-15 10:53:32.000000000 -0400 @@ -64,6 +64,12 @@ done ); $(RANLIB) $(ARPACKLIB) +arpackdylib: arpacklib tmp + ( cd tmp; ar -x $(ARPACKLIB) ) + ( $(FC) $(FFLAGS) $(LDFLAGS) -dynamiclib -install_name FINKPREFIX/lib/libarpack.0.dylib -compatibility_version 1.1.0 -current_version 1.1.0 -o $(ARPACKDYLIB) @LAPACKLINK@ @BLASLINK@ -Wl,@LOAD@,$(ARPACKLIB) ) + +tmp: + ( mkdir tmp ) cleantest: cleanlib: