forked from NCAR/ccpp-scm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Single and double precision documentation
- Loading branch information
1 parent
49d0f63
commit ee00840
Showing
3 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.. _`chapter: testing`: | ||
|
||
Testing | ||
========= | ||
|
||
|
||
Testing Overview | ||
------------------ | ||
|
||
[TODO] | ||
|
||
|
||
Precision: | ||
------------- | ||
To build in single precision the user can use the ``-D32BIT=1`` command line argument when setting up CMake. A user might be interested in how the output of any individual suite might turn out when compiling and running in single precision versus double precision. This capacity has been added in the ``precision_analysis.py`` tool found under the ``scme/etc/scripts`` directory. | ||
|
||
|
||
.. _`precisinoanalysis`: | ||
precision_analysis.py | ||
Builds single and double precision versions of the code, runs them, compares the output and ggenerateds png images of the analysis. Without any arguments the script with configure, build, run, and perform post-processing analysis. | ||
|
||
|
||
.. code:: bash | ||
./precisionanalysis.py | ||
[--configure|--configure32|--configure64] | ||
[--build|--build32|--build64] | ||
[--run|--run32|--run64] | ||
[--post] | ||
[-h, --help] | ||
Optional arguments: | ||
|
||
#. ``--configure``: Configure both single and double precision CMake builds. | ||
#. ``--configure32``: Configure single precision CMake build. | ||
#. ``--configure64``: Configure double precision CMake build. | ||
|
||
#. ``--build``: Build both single and double precision CMake builds. | ||
#. ``--build32``: Build single precision CMake build. | ||
#. ``--build64``: Build double precision CMake build. | ||
|
||
#. ``--run``: Run both single and double precision CMake builds. | ||
#. ``--run32``: Run single precision CMake build. | ||
#. ``--run64``: Run double precision CMake build. | ||
|
||
#. ``--post``: Perform post-processing of data and produce png files of the mean squared error of variables. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,4 @@ CCPP Single Column Model (SCM) User and Technical Guide v6.0.0 | |
chap_cases | ||
chap_ccpp | ||
chap_hsd | ||
|
||
|
||
chap_testing |