主题:arpack安装好了,调试问题出来了
大家好,费了好大劲总算装好了arpack,安装目录在/home/tianhongyu/arpack/ARPACK,下面是我的RAmake.inc配置:
	# %--------------------------------------%
# | You should change the definition of  |
# | home if ARPACK is built some place   | 
# | other than your home directory.      |
# %--------------------------------------%
#
home= /home/tianhongyu/arpack/ARPACK
PLAT = LINUXBLASdir      = $(home)/BLAS
LAPACKdir    = $(home)/LAPACK
UTILdir      = $(home)/UTIL
SRCdir       = $(home)/SRC
	ARPACKLIB  = $(home)/libarpack_$(PLAT).a
LAPACKLIB = 
BLASLIB = 
#
ALIBS =  $(ARPACKLIB) $(LAPACKLIB) $(BLASLIB)
	FC      = gfortran
FFLAGS = -O 
LDFLAGS = 
CD      = cd
ECHO = echo
	LN      = ln
LNFLAGS = -s
MAKE =/usr/bin/make
	RM      = rm
RMFLAGS = -f
SHELL = /bin/sh
	AR = ar 
ARFLAGS = rv
#RANLIB  = touch
RANLIB   = ranlib
有几个问题想请教下:我用的是gfortran编辑器,FFLAGS该怎么设置呢?
	FC      = gfortran
FFLAGS = -O 
这样设置没提示出错,但是有没有其他设置,可以算起来更快些啊?
另外,在make SIMPLE下面一个子程序:
make cnsimp
的时候出错了:
	/home/tianhongyu/arpack/ARPACK/libarpack_LINUX.a(second.o): In function `second_':
second.f:(.text+0x11): undefined reference to `etime_'
collect2: ld returned 1 exit status
make: *** [cnsimp] Error 1
我查了下secon.f在UTIL下面,现在将它复制一下,帮我看下怎么修改参数:
	      SUBROUTINE SECOND( T )
*
      REAL       T
*
*  -- LAPACK auxiliary routine (preliminary version) --
*     Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd.,
*     Courant Institute, Argonne National Lab, and Rice University
*     July 26, 1991
*
*  Purpose
*  =======
*
*  SECOND returns the user time for a process in seconds.
*  This version gets the time from the system function ETIME.
*
*     .. Local Scalars ..
      REAL               T1
	      REAL               TARRAY( 2 )
        REAL    ETIME
      EXTERNAL         ETIME
      T1 = ETIME( TARRAY )
      T  = TARRAY( 1 )
	      RETURN
      END
谢谢大家了!!!帮帮我吧。哎。。。好难啊!!

 您所在位置: