manual_howto.tex 4.42 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
\chapter{Getting started}
IFOS3D was tested on different Linux platforms. To run IFOS3D an MPI implementation (one of the three listed below) and a C-Compiler is required.
The code was tested on our local workstation cluster using Suse Linux and OpenMPI. Additionally applications were performed on the JUROPA and JURECA supercomputers in Juelich (Germany) and the Hermit supercomputer at HLRS in Stuttgart (Germany). The following programs should be installed on you machine for a proper run and processing of data. These requirements are similar to the forward solver SOFI3D.

% use packages: array
Program & Description & Weblink \\ 
Tilman Steinweg's avatar
Tilman Steinweg committed
OpenMPI & MPI Implementation & \url{} \\
 & (for the parallelization) & \\
Tilman Steinweg's avatar
Tilman Steinweg committed
MPICH2 & MPI Implementation & \tiny{\url{}} \\ 
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
& (for the parallelization) & \\
LAM/MPI & MPI Implementation & \url{} \\
& (for the parallelization) & \\
C-Compiler & the whole code is written in C,& \\
& any C-Compiler should be able & \\
& to compile it & \\
Seismic Un*x & Seismic processing package, & \url{} \\
(SU)  & SOFI3D outputs seismic data & \\
& in the SU format & \\
Matlab & Preferred program package for & \url{} \\
(commercial)& the visualization of snapshots, also  & \\
& useful for the display and & \\
& processing of seismograms & \\
xmovie & Console based movie program, can & usually included in Linux distribution\\
& be used for the quick display & otherwise install from repository\\
& of snapshot data  &
\section{Installation - The folder structure}
After unpacking the software package (e.g. by  \textbf{tar -zxvf ifos3D.tgz}) and changing to the directory ifos3D ( \textbf{cd ifos3D})  you will find different subdirectories:\vspace{0.2cm}\\
This directory contains all executable programs, like ifos3D and snapmerge. These executables are generated using the command  \textbf{make $<$program$>$} (see below).\vspace{0.2cm}\\
Tilman Steinweg's avatar
Tilman Steinweg committed
This directory contains documentation on the software (this users guide). \vspace{0.2cm}\\ 
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
Here some Matlab routines (m-files) are stored. They can be used vor processing and visualisation of data. \vspace{0.2cm}\\
This directory contains the following folders:
 \item \textbf{in\_and\_out}: contains in- and outputfiles of IFOS3D parameters
 \item \textbf{sources}: source parameters
 \item \textbf{receiver}: receiver locations
 \item \textbf{su}: seismogram outputfiles
 \item \textbf{su\_obs}: observed seismograms
 \item \textbf{model}: model in- and output
 \item \textbf{grad}: gradient output
 \item \textbf{hess}: diagonal hessian in- and output
Here, you will find examples of script-files used to submit modeling jobs on cluster-computers.\vspace{0.2cm}\\
This directory contains the complete source codes. The different subprograms are listed in appendix~\ref{sec:code_overview}.\vspace{0.2cm}\\
The libcseife library serves for filtering seismograms
Tilman Steinweg's avatar
Tilman Steinweg committed
62 63
To compile ifos3D change to the \textit{par}-directory and perform \textbf{make}. The Makefile will first compile the external libseife library and then compile the main program. In some cases it's necessary to  remove the *.d files in the \textit{libseife}-directory. If problems with the compilation arise go to the \textit{libseife}-directory open \textit{Makefile} and adjust the compiler options for your system.\\
To change the compiler options open the \textit{Makefile} in \textit{src}-directory. Here you can also find examples for compiler options on different systems where IFOS3D or SOFI3D were used in the past.
64 65
\section{Running IFOS3D}
To start the program with OpenMPI you can use the command\\
Tilman Steinweg's avatar
Tilman Steinweg committed
\textbf{mpirun -np 8 nice -19 ../bin/ifos3D ./in\_and\_out/ifOS3D\_toy.json $\mid$ tee ./in\_and\_out/ifos3D.out}\\
67 68
which runs IFOS3D on 8 processors with lowest priority. The standard output is written to \textit{/in\_and\_out/ifos3D.out}. You can also use the shell-script \textit{par/}.\\
For 3D FWI applications it is often useful to use supercomputers in high performance computing centers. Some examples for job scripts can be found in the directory \textit{scripts}.