Rate This Document
Findability
Accuracy
Completeness
Readability

Running and Verification

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Create a test case directory and upload the test case to the directory.
    mkdir -p /path/to/SWAN/swan-testcse
    cd /path/to/SWAN/swan-testcse
  3. Download the test case and upload it to the directory.

    http://swanmodel.sourceforge.net/download/zip/refrac.tar.gz

    If the server is connected to the Internet, you are advised to run the wget command to obtain the test case.

    wget http://swanmodel.sourceforge.net/download/zip/refrac.tar.gz --no-check-certif icate
  4. Decompress the test case file.
    tar -zxvf refrac.tar.gz
  5. Go to the directory and create a soft link.
    cd refrac
    ln -s /path/to/SWAN/swan4131/swan.exe ./
  6. Run the test case.
    cp a11refr.swn INPUT
    mpirun --allow-run-as-root -np 8 swan.exe

    time mpirun --allow-run-as-root -np 8 swan.exe

    The following figure shows an example of the CPU running time.

    • In the preceding command, the -np parameter indicates the total number of processes used in the test. Run the lscpu command and set this parameter based on your requirements.
    • The real time (unit: s) in the return result indicates the time. A smaller value indicates higher performance.