Skip to content

Commit 77a0d09

Browse files
authored
Merge pull request #193 from geodynamics/tang/docfix-1
Update Install Guide
2 parents a370b73 + 00942c8 commit 77a0d09

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

doc/SW4-Installation.pdf

-55 Bytes
Binary file not shown.

doc/SW4-Installation.tex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ \subsubsection{How do I setup the {\tt make.inc} file?}
341341
the C++ compiler, Fortran compiler, or linker, on your system.
342342

343343
\subsection{Building \emph{SW4} with PROJ, HDF5, and ZFP support}
344-
The PROJ libraray enables the more advanced geographical mapping keywords in the {\tt grid} command and is also required by the {\tt rfile, sfile} and {\tt gmg} commands. To enable the {\tt sfile}, {\tt ssioutput}, and {\tt gmg} commands, you have to also install the {\tt HDF5} library. To use ZFP compression for the {\tt ssioutput} command, {\tt ZFP} and {\tt H5Z-ZFP} are required. See Section \ref{sec:proj} for installing these libraries.
344+
The PROJ library enables the more advanced geographical mapping keywords in the {\tt grid} command and is also required by the {\tt rfile, sfile} and {\tt gmg} commands. To enable the {\tt sfile}, {\tt ssioutput}, and {\tt gmg} commands, you have to also install the {\tt HDF5} library. To use ZFP compression for the {\tt ssioutput} command, {\tt ZFP} and {\tt H5Z-ZFP} are required. See Section \ref{sec:proj} for installing these libraries.
345345

346346
Once you have successfully installed the PROJ, and optionally the HDF5 and ZFP libraries, it should be easy to re-configure \emph{SW4} to use them. Simply edit your configuration file (\verb+make.inc+) by adding the following lines to the top of the file, setting the {\tt proj}, {\tt hdf5}, and {\tt zfp} keywords to
347347
{\tt yes} or {\tt no}, as appropriate.
@@ -366,7 +366,7 @@ \subsection{Building \emph{SW4} with PROJ, HDF5, and ZFP support}
366366
\verb+debug+ directories.
367367

368368
\subsection{Testing the \emph{SW4} installation}
369-
The \emph{SW4} source code distribution includes a python(3) script for running several tests and
369+
The \emph{SW4} source code distribution includes a Python (3) script for running several tests and
370370
checking the solutions against previously verified results. Note that the same set of tests can be
371371
performed when \emph{SW4} is built with CMake, see Section~\ref{cha:ctest-sw4}.
372372

@@ -438,7 +438,7 @@ \section{Installing \emph{SW4} with CMake}\label{cha:installing-cmake-sw4}
438438
The two dots after {\tt cmake [options]} are essential and instructs it to look in the parent
439439
directory for the {\tt CMakeLists.txt} file.
440440

441-
The \verb+cmake+ command searches for the necessary libraries and other dependencies, then creates
441+
The \verb+cmake+ command searches for the necessary libraries and other dependencies then creates
442442
makefiles that are appropriate for your system. You then run \verb+make+ to compiles and link
443443
\emph{SW4} using these makefiles. For details about the exact commands being used in compilation,
444444
run \texttt{make VERBOSE=1}. Once SW4 has been successfully built, you will see the
@@ -534,15 +534,15 @@ \subsection{CMake Options}
534534

535535
Sometimes CMake doesn't pick up the correct compiler. Say, for example that the C++ compiler on your
536536
system is called {\tt mpicxx} and the Fortran compiler is {\tt mpiifort}. You can tell {\tt cmake}
537-
to use those compilers by setting the following envoronment variables {\em before} running cmake
537+
to use those compilers by setting the following environment variables {\em before} running cmake
538538
(assuming a {\tt csh} shell),
539539
\begin{verbatim}
540540
> setenv CXX mpicxx
541541
> setenv FC mpiifort
542542
\end{verbatim}
543543

544544
\subsection{CTest}\label{cha:ctest-sw4}
545-
The \emph{SW4} CMake configuration includes several test cases that are used to verify the correctness
545+
The \emph{SW4} CMake configuration includes several test cases used to verify the correctness
546546
of the \emph{SW4} installation. Each test consists of two parts. First it runs a case using an input
547547
file in the \verb+pytest+ directory. Secondly, it checks that the results are within
548548
a reasonable error tolerance from previously recorded results.
@@ -563,7 +563,7 @@ \subsection{CTest}\label{cha:ctest-sw4}
563563
Start 24: Check_Result_pointsource/pointsource-sg-1
564564
24/24 Test #24: Check_Result_pointsource/pointsource-sg-1 ... Passed 0.03 sec
565565
566-
100\% tests passed, 0 tests failed out of 24
566+
100% tests passed, 0 tests failed out of 24
567567
568568
Total Test time (real) = 230.91 sec
569569
\end{verbatim}
@@ -626,9 +626,9 @@ \subsection{PROJ}
626626
> cd proj-x.x.x
627627
> mkdir build
628628
> cd build
629-
> cmake -DBUILD_APPS=OFF -DCMAKE_INSTALL_PREFIX=${SW4ROOT}
630-
-DSQLITE3_INCLUDE_DIR=${SW4ROOT}/include
631-
-DSQLITE3_LIBRARY=${SW4ROOT}/lib/libsqlite3.so ..
629+
> cmake -DBUILD_APPS=OFF -DCMAKE_INSTALL_PREFIX=${SW4ROOT} \
630+
-DSQLITE3_INCLUDE_DIR=${SW4ROOT}/include \
631+
-DSQLITE3_LIBRARY=${SW4ROOT}/lib/libsqlite3.so ..
632632
633633
# Note that the two -DSQLITE3 flags are needed if you compiled SQLite yourself.
634634
> make
@@ -643,13 +643,13 @@ \subsection{HDF5}
643643
> cd hdf5-1.xx.x
644644
> mkdir build
645645
> cd build
646-
> cmake -DHDF5_ENABLE_PARALLEL=ON -DCMAKE_INSTALL_PREFIX=${SW4ROOT}
646+
> cmake -DHDF5_ENABLE_PARALLEL=ON -DCMAKE_INSTALL_PREFIX=${SW4ROOT} ..
647647
> make
648648
> make install
649649
\end{verbatim}
650650

651651
\subsection{ZFP and H5Z-ZFP}
652-
We recommend to use use ZFP and H5Z-ZFP's latest stable release version.
652+
We recommend using ZFP and H5Z-ZFP's latest stable release version.
653653

654654
Installing ZFP can be done with the following steps:
655655
\begin{verbatim}

0 commit comments

Comments
 (0)