You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\emph{SW4} can be installed with Spack (\url{https://spack.io}), which is a package manager for supercomputers, Linux, and macOS. It can automatically install \emph{SW4} together with all its dependent libraries, such as MPI, Proj, OpenMP, blas, lapack, HDF5, FFTW, and ZFP.
Run the following command to add the installed \emph{SW4} executable to your system PATH:
85
+
\begin{verbatim}
86
+
> . spack/share/spack/setup-env.sh
87
+
> spack load sw4
88
+
\end{verbatim}
73
89
74
90
\section{Compilers and third party libraries}
75
91
@@ -189,7 +205,7 @@ \section{Installing \emph{SW4} with make}\label{cha:installing-sw4}
189
205
190
206
The classical way of building \emph{SW4} uses \verb+make+. We recommend using GNU make, sometimes called \verb+gmake+. You can check the version of make on you system with the command
191
207
\begin{verbatim}
192
-
make -v
208
+
> make -v
193
209
\end{verbatim}
194
210
If you don't have GNU make installed on your system, you can obtain it from www.gnu.org.
195
211
@@ -281,8 +297,8 @@ \subsubsection{Using make}
281
297
\end{verbatim}
282
298
You can also build an executable with debugging symbols by adding the \verb+debug=yes+ option to \verb+make+,
283
299
\begin{verbatim}
284
-
cd /enter/your/path/sw4-v3.0
285
-
make debug=yes
300
+
> cd /enter/your/path/sw4-v3.0
301
+
> make debug=yes
286
302
\end{verbatim}
287
303
In this case, the executable will be located in
288
304
\begin{verbatim}
@@ -342,8 +358,8 @@ \subsection{Building \emph{SW4} with PROJ, HDF5, and ZFP support}
342
358
You then need to re-compile \emph{SW4}. Go to the \emph{SW4} main directory, clean out the previous
343
359
object files and executable, and re-run make:
344
360
\begin{verbatim}
345
-
make clean
346
-
make
361
+
> make clean
362
+
> make
347
363
\end{verbatim}
348
364
If all goes well, the ``SW4 lives'' banner is shown after the make command is
349
365
completed. As before, the \verb+sw4+ executable will be located in the \verb+optimize+ or
@@ -358,8 +374,8 @@ \subsection{Testing the \emph{SW4} installation}
358
374
\verb+test_sw4.py+. If the \verb+sw4+ executable resides in the \verb+optimize+ directory, you can
359
375
run the basic tests by doing:
360
376
\begin{verbatim}
361
-
cd pytest
362
-
./test_sw4.py ("./test_sw4.py -u 0" if HDF5 is not installed)
377
+
> cd pytest
378
+
> ./test_sw4.py ("./test_sw4.py -u 0" if HDF5 is not installed)
363
379
\end{verbatim}
364
380
If all goes well, you should see the following output:
365
381
\begin{verbatim}
@@ -374,7 +390,7 @@ \subsection{Testing the \emph{SW4} installation}
374
390
\verb+test_sw4.py+. For a complete list of options do \verb+test_sw4.py --help+, which currently
0 commit comments