1. How to install

1.1. Requirement

  • LAPACK, BLAS

  • cpplapack (included in this package)

1.2. Download

  • Stable version

    You can download a stable version of the SpM program in https://github.com/SpM-lab/SpM/releases. After download the archive, decompress it by

    $ tar zxvf v1.0.tar.gz
    
  • Latest codes

    You can get the latest codes from our GitHub repository. Execute the following command

    $ git clone https://github.com/SpM-lab/SpM.git spm.src
    

    and then the source codes are downloaded in the directory spm.src.

1.3. Build

  1. First, create an empty directory and move into it:

$ mkdir spm.build && cd spm.build

We assume that spm.build is located on the same level as spm.src.

  1. Call cmake

$ cmake ../spm.src

and all necessary files including Makefile are created according to your system configuration. [any cmake options?]

  1. Now, you can compile the codes by

$ make

The executable file SpM.out is created in the spm.build/src directory.

1.4. Test

Some sample data are provided for test calculations. Just enter into samples/fermion directory and execute it by

$ ./run.sh

You may need to change the parameter file_exe="../SpM.out" in the script (absolute or relative path to SpM.out) according to your environment. If succeeded, results including graphs in EPS format are generated in output directory. For details of the sample script, see Tutorials.