zoukankan      html  css  js  c++  java
  • about ARPACK++ installing

    first reference to https://help.ubuntu.com/community/Arpack%2B%2B

    1.apt-get install libarpack2-dev (gfortran已安装)

    注意:不安装libsuperlu3-dev, because it will hapen "segment fault", such like running arpack++.examples.nonsym.lnsymgsh although they can be compiled successfully.

    Because ARPACK++ only support superlu 2.0.

    2. compile superlu 2.0

    download superlu 2.0 source code.

    Because my system is ubuntu, so I have to modify make.inc of superlu.Because I already install blas library , so as README says, set BLASDEF = -DUSE_VENDOR_BLAS BLASLIB = <your blas path>.

    PLAT = LINUX          CFLAGS = -02 -g(just simple setting, you can search CFLAGS information or refer

    http://blog.chinaunix.net/u3/94102/showart_1922415.html, you can set more, then make superlu better work)

    3. install ARPACK++

    download arpack++ 1.2 (beta version) at http://www.ime.unicamp.br/~chico/arpack++/ and the patch for arpac++ 1.2 at http://reuter.mit.edu/index.php/software/arpackpatch/ in the same directory

    open with an editor the patch file arpack++1.2.patch.diff

    gedit arpack++1.2.patch.diff

    and change the (should be 9362th) line

    +FORTRAN_LIBS = -lg2c

    into

    +FORTRAN_LIBS = -lgfortran -lgfortranbegin -lnsl

    then untar arpack++

    tar -zxvf arpack++.tar.gz

    and check that it is version 1.2 with the command

    head -1 arpack++/README

    that should return the string

    ARPACK++ version 1.2. Feb 20, 2000.

    now apply the patch

    cp arpack++1.2.patch.diff arpack++/cd arpack++patch -p 1 < arpack++1.2.patch.diff

    Compiling with ARPACK++

    at this point arpack++ should be working: as it is only a c++ interface to arpack, there are no libraries but only header files to be included into your c++ code; therefore you need to compile with

    -I $whereisarpack/arpack++/include

    where you should substitute to $whereisarpack the place where arpack++.tar.gz has been untarred

    4. test

    cd $whereisarpack/arpack++/examples/superlu/sym
    make

    (note: you must modify make.inc of arpack++: link your supelu 2.0 library)

  • 相关阅读:
    Zabbix5 Frame 嵌套
    Zabbix5 对接 SAML 协议 SSO
    CentOS7 安装 Nexus
    CentOS7 安装 SonarQube
    GitLab 后台修改用户密码
    GitLab 查看版本号
    GitLab Admin Area 500 Error
    Linux 安装 PostgreSQL
    Liger ui grid 参数
    vue.js 是一个怪东西
  • 原文地址:https://www.cnblogs.com/europelee/p/3388669.html
Copyright © 2011-2022 走看看