Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #11661: patch-arpack.diff

File patch-arpack.diff, 2.3 KB (added by mmoll@…, 20 months ago)
  • ./ARmake.inc

     
    3434# 
    3535PLAT = SUN4 
    3636# 
     37#  The communication library ( need for parallel library only ) 
     38#  Current availible platforms are: BLACS or MPI 
     39# 
     40COMMLIB       = MPI 
     41# 
    3742#  %------------------------------------------------------% 
    3843#  | The directories to find the various pieces of ARPACK | 
    3944#  %------------------------------------------------------% 
     
    4247LAPACKdir    = $(home)/LAPACK 
    4348UTILdir      = $(home)/UTIL 
    4449SRCdir       = $(home)/SRC 
     50PSRCdir      = $(home)/PARPACK/SRC/$(COMMLIB) 
     51PUTILdir     = $(home)/PARPACK/UTIL/$(COMMLIB) 
    4552# 
    4653DIRS        = $(BLASdir) $(LAPACKdir) $(UTILdir) $(SRCdir) 
    4754# 
     
    5158# | NOTE: ARPACK assumes the use of LAPACK version 2 codes.           | 
    5259# %-------------------------------------------------------------------% 
    5360# 
    54 #DIRS         = $(UTILdir) $(SRCdir) 
     61DIRS         = $(UTILdir) $(SRCdir) 
    5562# 
    5663# %---------------------------------------------------% 
    5764# | The name of the libraries to be created/linked to | 
    5865# %---------------------------------------------------% 
    5966# 
    60 ARPACKLIB  = $(home)/libarpack_$(PLAT).a 
    61 LAPACKLIB =  
     67ARPACKLIB  = $(home)/libarpack.a 
     68PARPACKLIB = $(home)/libparpack.a 
     69LAPACKLIB = -framework Accelerate 
    6270BLASLIB =  
    6371# 
    6472ALIBS =  $(ARPACKLIB) $(LAPACKLIB) $(BLASLIB)  
     73MPILIBS =  
     74PLIBS = $(PARPACKLIB) $(ALIBS) $(MPILIBS) 
     75 
    6576# 
    6677#  
    6778# %---------------------------------------------------------% 
     
    102113# %-----------------------------------------% 
    103114# 
    104115FC      = f77 
    105 FFLAGS  = -O -cg89 
     116FFLAGS  = -O2 -ff2c 
    106117 
    107118LDFLAGS =  
    108119CD      = cd 
     
    112123LN      = ln 
    113124LNFLAGS = -s 
    114125 
    115 MAKE    = /bin/make 
     126MAKE    = make 
    116127 
    117128RM      = rm 
    118129RMFLAGS = -f 
  • ./UTIL/second.f

    diff -rubw ARPACK.orig/ARPACK/UTIL/second.f ARPACK/UTIL/second.f
     
    2020      REAL               TARRAY( 2 ) 
    2121*     .. 
    2222*     .. External Functions .. 
    23       REAL               ETIME 
    24       EXTERNAL           ETIME 
     23*      REAL               ETIME 
     24*      EXTERNAL           ETIME 
    2525*     .. 
    2626*     .. Executable Statements .. 
    2727* 
    2828 
    29       T1 = ETIME( TARRAY ) 
    30       T  = TARRAY( 1 ) 
    31  
     29*     T1 = ETIME( TARRAY ) 
     30*      T  = TARRAY( 1 ) 
     31      T  = 1 
    3232      RETURN 
    3333* 
    3434*     End of SECOND