ARCHIVED: Link the ARPACK numerical library to your Fortran program on Karst at IU

This content has been archived, and is no longer maintained by Indiana University. Information here may no longer be accurate, and links may no longer be available or reliable.
Note:
Karst was retired from service on December 18, 2020. Although you can no longer log into Karst, you can access files in your Karst home directory from any of the other IU research supercomputers until December 31, 2021. For information about Quartz, Karst's replacement system, see About Quartz at IU.

ARPACK is a collection of Fortran 77 subroutines for solving large eigenvalue problems. For more, see the ARPACK Users' Guide. Following are instructions for linking the ARPACK library to your Fortran program on Karst at Indiana University.

  1. Add the ARPACK library to your user environment:
    1. Make sure the Intel Compiler Suite module is loaded. To check, on the command line, enter module list, and review the output. If the intel/[version] module is not listed, add it with the module load command; on the command line, enter:
      module load intel
      
    2. Load the ARPACK module; on the command line, enter:
      module load arpack
      

    To make permanent changes to your environment, edit your ~/.modules file. For more, see Use a .modules file in your home directory to save your user environment on an IU research supercomputer.

  2. To link the ARPACK library to your Fortran program, add the -L and -l options to your compile command as shown in the following example. The -L option adds the specified directory path to the library search list and should be placed before the -l option to which it applies.

    To compile myprogram.f and link it with the ARPACK library, on the command line, enter:

    ifort myprogram.f -L/N/soft/rhel6/2.1/lib -larpack -o myprogram
    

If you need help or have questions regarding the use of ARPACK on IU's research supercomputers, contact the UITS Research Applications and Deep Learning team.

Support for IU research supercomputers, software, and services is provided by the Research Technologies division of UITS. To ask a question or get help, contact UITS Research Technologies.

This is document bdnq in the Knowledge Base.
Last modified on 2020-12-18 03:17:10.

Contact us

For help or to comment, email the UITS Support Center.