SMG2S Installation

Prerequisites

1. C++ Compiler with c++11 support.

2. Cmake (version minimum 3.6).

3. PETSc and SLPEc are necessary for the verification of the ability to keep the given spectrum.

Installation

In the main directory :

cmake .  -DCMAKE_INSTALL_PREFIX=${INSTALL_DIRECTORY}

The main.cpp will generate an exectutable smg2s.exe to demonstrate a minimum sample :

make

Execution of smg2s.exe. If ${GIVEN_SPECTRUM_FILE} is not given, SMG2S will use the internal eigenvalue generation method to generate a default spectrum:

mpirun -np ${PROCS} ./smg2s.exe -SIZE ${MAT_SIZE} -L ${LOW_BANDWIDTH} -C ${CONTINUOUS_ONES} -SPTR ${GIVEN_SPECTRUM_FILE}

If ${GIVEN_SPECTRUM_FILE} is not given, SMG2S will use the internal eigenvalue generation method to generate a default spectrum.

The main part of SMG2S is a colllection of header files. Install the header files into ${INSTALL_DIRECTORY} :

make install

How to use SMG2S ?

We recommand to you to see the example for learn how work SMG2S and how use it.

SMG2S Example