Seismo-VLAB  1.3
An Open-Source Finite Element Software for Meso-Scale Simulations
Windows Operating System

Installation of SVL on a Windows machine can be done indirectly using WSL. This method is in fact recommended in order to avoid Windows' troubleshooting issues. Please, follow the instructions provided in this YouTube video, to properly install WSL on Windows.

On Linux the C:\ HDD is located at /mnt/c/ which is Windows 10 C:\ mounted on Linux. Therefore, moving/coping files from Window to Linux and viceversa can be done as:

cp -r /mnt/c/path-to-file-on-windows /home/path-to-file-on-linux

For more information on how to copy files, we recommend to watch this YouTube video.

Once WSL is properly installed, the SVL installation can be done as described in Ubuntu Operating System. For example, to instal SVL on Ubuntu 20.04, open a terminal and paste the following list of commands:

Copy SVL folder from Windows to Linux
cp -r /mnt/c/path-to-SVL-folder-on-windows /home/path-to-directory-on-linux

Install C++/Fortran Compilers
sudo apt-get update
sudo apt-get install wget
sudo apt-get install bash
sudo apt-get install gcc
sudo apt-get install gfortran
sudo apt-get install g++
sudo apt-get install make

Install Python libraries
sudo apt-get install python3.9
sudo apt-get install python3-numpy
sudo apt-get install python3-scipy
sudo apt-get install python3-matplotlib

Install parallel computing libraries
sudo apt-get install libomp-dev
sudo apt-get install openmpi-bin
sudo apt-get install openmpi-common
sudo apt-get install libopenmpi-dev

Download and Install Eigen C++ library
wget -nv https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.gz
tar -xvf eigen-3.3.9.tar.gz
mv eigen-3.3.9 eigen
sudo mv eigen /usr/include
rm eigen-3.3.9.tar.gz

Install partition and numerical libraries
sudo apt-get install metis
sudo apt-get install libmetis-dev
sudo apt-get install libparmetis-dev
sudo apt-get install libscotch-dev
sudo apt-get install libptscotch-dev
sudo apt-get install libatlas-base-dev
sudo apt-get install liblapack-dev
sudo apt-get install libscalapack-mpi-dev

Move metis library to Pre-Analysis folder
cp /usr/bin/mpmetis ~/SVL/01-Pre_Process/Metis

Install MUMPS direct solver library
sudo apt-get install libmumps-5.2.1

Install PETSc iterative solver library
sudo apt-get install petsc-dev

Compile the SVL library
cd /SVL/02-Run_Process
make -s DEBUG=False

Before compiling SVL, please check in the Makefile.mk that the mpi library path is right. This library can be locate at MPI_DIR = /usr/include/mpi or MPI_DIR = /usr/include/x86_64-linux-gnu/mpi.

Note
This process requires WSL to be installed on Windows.
This process requires to move the SVL folder to the Ubuntu 20.04 directory.
This process assumes the folder SVL is located at /home/username, that is why the path ~/SVL/01-Pre_Process/Metis is employed.
The WSL version on Windows 10 S does not allow to install Linux Distros. Therefore, you may need to install the Windows10Upgrade9250.exe or similar.
If SVL is compiled successfully, you should see the following message: SUCCESSFUL LINKAGE. The executable SeismoVLAB.exe was generated, as shown in the following figure:
WindowsWSL.png