[cig-commits] r19230 - seismo/3D/SPECFEM3D/trunk/doc/USER_MANUAL

dkomati1 at geodynamics.org dkomati1 at geodynamics.org
Mon Nov 21 15:21:02 PST 2011


Author: dkomati1
Date: 2011-11-21 15:21:02 -0800 (Mon, 21 Nov 2011)
New Revision: 19230

Modified:
   seismo/3D/SPECFEM3D/trunk/doc/USER_MANUAL/manual_SPECFEM3D.pdf
   seismo/3D/SPECFEM3D/trunk/doc/USER_MANUAL/manual_SPECFEM3D.tex
Log:
improved the paragraph about single precision in the manual


Modified: seismo/3D/SPECFEM3D/trunk/doc/USER_MANUAL/manual_SPECFEM3D.pdf
===================================================================
(Binary files differ)

Modified: seismo/3D/SPECFEM3D/trunk/doc/USER_MANUAL/manual_SPECFEM3D.tex
===================================================================
--- seismo/3D/SPECFEM3D/trunk/doc/USER_MANUAL/manual_SPECFEM3D.tex	2011-11-21 23:19:58 UTC (rev 19229)
+++ seismo/3D/SPECFEM3D/trunk/doc/USER_MANUAL/manual_SPECFEM3D.tex	2011-11-21 23:21:02 UTC (rev 19230)
@@ -358,10 +358,12 @@
 Note that this flag is not used by the database generator or the solver; it is
 only used for some of the post-processing.
 \end{description}
-The package can run either in single or in double precision. The default
-is single precision mode because this requires exactly half as much
-memory. Select your preference by selecting the appropriate setting
-in the \texttt{constants.h} file:
+The package can run either
+in single or in double precision mode. The default is single precision
+because for almost all calculations performed using the spectral-element method
+using single precision is sufficient and gives the same results (i.e. the same seismograms);
+and the single precision code is faster and requires exactly half as much memory.
+Select your preference by selecting the appropriate setting in the \texttt{constants.h} file:
 
 \begin{description}
 \item [{\texttt{CUSTOM\_REAL}}] Set to \texttt{SIZE\_REAL} for single precision
@@ -373,15 +375,12 @@
 \item [{\texttt{CUSTOM\_MPI\_TYPE}}] Set to \texttt{MPI\_REAL} for single
 precision and \texttt{MPI\_DOUBLE\_PRECISION} for double precision.
 \end{description}
-On a new system, it is definitely worth experimenting with single
-versus double precision simulations to determine which is faster.
-Note that on many current processors (e.g., Intel, AMD, IBM Power),
-single precision calculations are often significantly faster; the
-difference can typically be 10\% to 25\%. It is therefore often worth
-using single precision if you can. We recommend running the same calculation
-once in single precision and in double precision on your system and
-then comparing the seismograms. If they are identical, you should probably
-select single precision for your future runs.\\
+On many current processors (e.g., Intel, AMD, IBM Power), single precision calculations
+are significantly faster; the difference can typically be 10\%
+to 25\%. It is therefore better to use single precision.
+What you can do once for the physical problem you want to study is run the same calculation in single precision
+and in double precision on your system and compare the seismograms.
+If they are identical (and in most cases they will), you can select single precision for your future runs.\\
 
 When compiling on an IBM machine with the \texttt{xlf} and \texttt{xlc} compilers, we suggest running the \texttt{configure} script
 with the following options:\\



More information about the CIG-COMMITS mailing list