Skip to content

Commit 1db4b77

Browse files
authored
docs: documentation updates (NOAA-GFDL#935)
Reorganizes the doxygen site and adds missing pages for certain routines/files
1 parent 1df41fc commit 1db4b77

File tree

186 files changed

+1537
-1782
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+1537
-1782
lines changed

.github/workflows/update_docs.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
- name: Setup repo
1313
run: | # do autotool's job for substitutes since we don't need a full build environement
1414
mkdir gen_docs
15-
sed 's/@abs_top_builddir@\/docs/gen_docs/' docs/Doxyfile.in > gen_docs/Doxyfile
16-
sed -i 's/@abs_top_srcdir@/./' gen_docs/Doxyfile
15+
sed 's/@abs_top_builddir@\/docs/gen_docs/g' docs/Doxyfile.in > gen_docs/Doxyfile
16+
sed -i 's/@abs_top_srcdir@/./g' gen_docs/Doxyfile
1717
# grab version number from configure.ac
1818
export VER="`awk '/AC_INIT/{getline;print}' configure.ac | cut -d "[" -f2 | cut -d "]" -f1`"
19-
sed -i "s/@PACKAGE_VERSION@/$VER/" gen_docs/Doxyfile
19+
sed -i "s/@PACKAGE_VERSION@/$VER/g" gen_docs/Doxyfile
2020
- name: Install and run doxygen
2121
run: |
22-
sudo apt -y install doxygen
22+
sudo apt -y install doxygen graphviz
2323
doxygen gen_docs/Doxyfile
2424
- name: Deploy
2525
uses: peaceiris/actions-gh-pages@v3

affinity/affinity.c

+3-6
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,8 @@
4040
// skips doc parsing for includes and license
4141

4242
/**
43-
* \file
44-
* \brief Routines to set and get thread CPU affinity
45-
* Get, set, and helper functions for thread CPU affinity to be interfaced
46-
* in fortran via fms_affinity_mod
47-
* \author @bensonr
48-
* \ingroup affinity
43+
* \addtogroup affinity
44+
* \@{
4945
*/
5046

5147
/**
@@ -146,3 +142,4 @@ int set_cpu_affinity(int cpu)
146142
#endif
147143
return 0;
148144
}
145+
///@}

affinity/fms_affinity.F90

+2-6
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,11 @@
2020
!> @defgroup fms_affinity_mod fms_affinity_mod
2121
!> @ingroup affinity
2222
!> @brief Fortran API interfaces to set the thread affinity.
23-
!! API interfaces to allow setting and getting thread affinity. The thread affinity get and set
24-
!! are managed in the C routines in affinity.c.
23+
!! API interfaces to allow setting and getting thread affinity. The routines @ref get_cpuset
24+
!! , @ref set_cpu_affinity , and @ref fms_affinity_get are defined via C routines in affinity.c.
2525
!!
2626
!! @author Rusty Benson
2727

28-
!> @file
29-
!> File for @ref fms_affinity_mod
30-
3128
!> @addtogroup fms_affinity_mod
3229
!> @{
3330
module fms_affinity_mod
@@ -49,7 +46,6 @@ module fms_affinity_mod
4946
!> Interface to get affinity from the current component.
5047
!!
5148
!> Defined in @ref affinity.c.
52-
!> @ingroup fms_affinity_mod
5349
integer(KIND=c_int) function fms_affinity_get() bind(c, name="get_cpu_affinity")
5450
import c_int
5551
end function fms_affinity_get

amip_interp/amip_interp.F90

+52-58
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@
2626
!!
2727
!> When using these routines three possible data sets are available:
2828
!!
29-
!! 1. AMIP @link http://www-pcmdi.llnl.gov/amip @endlink from Jan 1979 to Jan 1989 (2 deg x 2 deg)
30-
!! 2. Reynolds OI @link amip_interp.rey_oi.txt @endlink from Nov 1981 to Jan 1999 (1 deg x 1 deg)
31-
!! 3. Reynolds EOF @link ftp://podaac.jpl.nasa.gov/pub/sea_surface_temperature/reynolds/rsst/doc/rsst.html
32-
!! @endlink from Jan 1950 to Dec 1998 (2 deg x 2 deg)
29+
!! 1. AMIP http://www.pcmdi.github.io/mips/amip from Jan 1979 to Jan 1989 (2 deg x 2 deg)
30+
!! 2. Reynolds OI @ref amip_interp.rey_oi.txt from Nov 1981 to Jan 1999 (1 deg x 1 deg)
31+
!! 3. Reynolds EOF podaac.jpl.nasa.gov/ from Jan 1950 to Dec 1998 (2 deg x 2 deg)
3332
!!
3433
!! All original data are observed monthly means. This module
3534
!! interpolates linearly in time between pairs of monthly means.
@@ -62,10 +61,55 @@
6261
!! amip1 INPUT/amip1_sst.data
6362
!! reynolds_io INPUT/reyoi_sst.data
6463
!! reynolds_eof INPUT/reynolds_sst.data
65-
66-
67-
!> @file
68-
!> File for amip_interp_mod
64+
!!
65+
!> @var character(len=24) data_set
66+
!! Name/type of SST data that will be used.
67+
!! Possible values (case-insensitive) are:
68+
!! 1) amip1
69+
!! 2) reynolds_eof
70+
!! 3) reynolds_oi
71+
!! See the @ref amip_interp_oi page for more information
72+
!! @var character(len=16) date_out_of_range
73+
!! Controls the use of climatological monthly mean data when
74+
!! the requested date falls outside the range of the data set.<BR/>
75+
!! Possible values are:
76+
!! <PRE>
77+
!! fail - program will fail if requested date is prior
78+
!! to or after the data set period.
79+
!! initclimo - program uses climatological requested data is
80+
!! prior to data set period and will fail if
81+
!! requested date is after data set period.
82+
!! climo - program uses climatological data anytime.
83+
!! </PRE>
84+
!! @var real tice_crit
85+
!! Freezing point of sea water in degC or degK. Defaults to -1.80
86+
!! @var integer verbose
87+
!! Controls printed output, 0 <= verbose <= 3, default=0
88+
!! additional parameters for controlling zonal prescribed sst ----
89+
!! these parameters only have an effect when use_zonal=.true. ----
90+
!! @var logical use_zonal
91+
!! Flag to selected zonal sst or data set. Default=.false.
92+
!! @var real teq
93+
!! sst at the equator. Default=305
94+
!! @var real tdif
95+
!! Equator to pole sst difference. Default=50
96+
!! @var real tann
97+
!! Amplitude of annual cycle. Default=20
98+
!! @var real tlag
99+
!! Offset for time of year (for annual cycle). Default=0.875
100+
!! @var integer amip_date
101+
!! Single calendar date in integer "(year,month,day)" format
102+
!! that is used only if set with year>0, month>0, day>0.
103+
!! If used, model calendar date is replaced by this date,
104+
!! but model time of day is still used to determine ice/sst.
105+
!! Used for repeating-single-day (rsd) experiments.
106+
!! Default=/-1,-1,-1/
107+
!! @var real sst_pert
108+
!! Temperature perturbation in degrees Kelvin added onto the SST.
109+
!! The perturbation is globally-uniform (even near sea-ice).
110+
!! It is only used when abs(sst_pert) > 1.e-4. SST perturbation runs
111+
!! may be useful in accessing model sensitivities.
112+
!! Default=0.
69113

70114
!> @addtogroup amip_interp_mod
71115
!> @{
@@ -299,56 +343,6 @@ module amip_interp_mod
299343
logical :: interp_oi_sst = .false. !< changed to false for regular runs
300344
logical :: use_mpp_io = .false. !< Set to .true. to use mpp_io, otherwise fms2io is used
301345

302-
!> @page amip_interp_nml @ref amip_interp_mod Namelist
303-
!!
304-
!> @var character(len=24) data_set
305-
!! Name/type of SST data that will be used.
306-
!! Possible values (case-insensitive) are:
307-
!! 1) amip1
308-
!! 2) reynolds_eof
309-
!! 3) reynolds_oi
310-
!! See the @ref amip_interp_oi page for more information
311-
!! @var character(len=16) date_out_of_range
312-
!! Controls the use of climatological monthly mean data when
313-
!! the requested date falls outside the range of the data set.<BR/>
314-
!! Possible values are:
315-
!! <PRE>
316-
!! fail - program will fail if requested date is prior
317-
!! to or after the data set period.
318-
!! initclimo - program uses climatological requested data is
319-
!! prior to data set period and will fail if
320-
!! requested date is after data set period.
321-
!! climo - program uses climatological data anytime.
322-
!! </PRE>
323-
!! @var real tice_crit
324-
!! Freezing point of sea water in degC or degK. Defaults to -1.80
325-
!! @var integer verbose
326-
!! Controls printed output, 0 <= verbose <= 3, default=0
327-
!! additional parameters for controlling zonal prescribed sst ----
328-
!! these parameters only have an effect when use_zonal=.true. ----
329-
!! @var logical use_zonal
330-
!! Flag to selected zonal sst or data set. Default=.false.
331-
!! @var real teq
332-
!! sst at the equator. Default=305
333-
!! @var real tdif
334-
!! Equator to pole sst difference. Default=50
335-
!! @var real tann
336-
!! Amplitude of annual cycle. Default=20
337-
!! @var real tlag
338-
!! Offset for time of year (for annual cycle). Default=0.875
339-
!! @var integer amip_date
340-
!! Single calendar date in integer "(year,month,day)" format
341-
!! that is used only if set with year>0, month>0, day>0.
342-
!! If used, model calendar date is replaced by this date,
343-
!! but model time of day is still used to determine ice/sst.
344-
!! Used for repeating-single-day (rsd) experiments.
345-
!! Default=/-1,-1,-1/
346-
!! @var real sst_pert
347-
!! Temperature perturbation in degrees Kelvin added onto the SST.
348-
!! The perturbation is globally-uniform (even near sea-ice).
349-
!! It is only used when abs(sst_pert) > 1.e-4. SST perturbation runs
350-
!! may be useful in accessing model sensitivities.
351-
!! Default=0.
352346
namelist /amip_interp_nml/ use_ncep_sst, no_anom_sst, use_ncep_ice, tice_crit, &
353347
interp_oi_sst, data_set, date_out_of_range, &
354348
use_zonal, teq, tdif, tann, tlag, amip_date, &

amip_interp/amip_interp.rey_oi.txt amip_interp/amip_interp.rey_oi.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
\file
2-
\ingroup amip_interp
1+
@ingroup amip_interp
32

4-
(This file was edited for the Flexible Modeling System on July 26, 1999)
3+
## Information for the use of the monthly NMC SST analyzed fields
54

6-
Information for the use of the monthly NMC SST analyzed fields
5+
(This file was edited for the Flexible Modeling System on July 26, 1999)
76

87
The monthly optimum interpolation (OI) fields are derived by a linear
98
interpolation of the weekly OI fields to daily fields then averaging

astronomy/astronomy.F90

-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
!! radiation packages.
2525
!> @author Fei Liu
2626

27-
28-
!> @file
29-
!> @brief File for @ref astronomy_mod
30-
3127
!> @addtogroup astronomy_mod
3228
!> @{
3329
module astronomy_mod

axis_utils/axis_utils.F90

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
!> @defgroup axis_utils_mod axis_utils_mod
2020
!> @ingroup axis_utils
2121
!> @brief A set of utilities for manipulating axes and extracting axis attributes,
22+
!! A more recent version of this module using the updated fms2_io is available, @ref axis_utils2
23+
!! but this module should be used if still using @ref mpp_io
24+
!!
2225
!> @author M.J. Harrison
2326

24-
!> @file
25-
!> @brief File for @ref axis_utils_mod
26-
2727
!> @addtogroup axis_utils_mod
2828
!> @{
2929
module axis_utils_mod

axis_utils/axis_utils2.F90

+1-5
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,9 @@
1919
!> @defgroup axis_utils2_mod axis_utils2_mod
2020
!> @ingroup axis_utils
2121
!> @brief A set of utilities for manipulating axes and extracting axis attributes.
22-
!!
23-
!> FMS2_IO equivalent version of @ref axis_utils_mod.
22+
!! FMS2_IO equivalent version of @ref axis_utils_mod.
2423
!> @author M.J. Harrison
2524

26-
!> @file
27-
!> @brief File for @ref axis_utils2_mod
28-
2925
!> @addtogroup axis_utils2_mod
3026
!> @{
3127
module axis_utils2_mod

block_control/block_control.F90

-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
!> @brief Routines for "blocks" used for OpenMP threading of column-based
2222
!! calculations
2323

24-
!> @file
25-
!> @brief File for @ref block_control_mod
26-
2724
module block_control_mod
2825

2926
use mpp_mod, only: mpp_error, NOTE, WARNING, FATAL

column_diagnostics/column_diagnostics.F90

-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
!> @ingroup column_diagnostics
2121
!! @brief Module to locate and mark desired diagnostic columns
2222

23-
!> @file
24-
!> @brief File for @ref column_diagnostics_mod
25-
2623
!> @addtogroup column_diagnostics_mod
2724
!> @{
2825
module column_diagnostics_mod

constants/constants.F90

+24-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,35 @@
1616
!* You should have received a copy of the GNU Lesser General Public
1717
!* License along with FMS. If not, see <http://www.gnu.org/licenses/>.
1818
!***********************************************************************
19+
!> @file
20+
!> @brief File for @ref constants_mod
21+
1922
!> @defgroup constants_mod constants_mod
2023
!> @ingroup constants
2124
!> @brief compatibility module as we transition to an FMSConstants module
2225
!!
23-
!> @file
24-
!> @brief File for @ref constants_mod
26+
!> Constants have been declared as type REAL, PARAMETER.
27+
!!
28+
!! The value a constant can not be changed in a users program.
29+
!! New constants can be defined in terms of values from the
30+
!! constants module using a parameter statement.<br><br>
31+
!!
32+
!! The name given to a particular constant may be changed.<br><br>
33+
!!
34+
!! Constants can be used on the right side on an assignment statement
35+
!! (their value can not be reassigned).
36+
!!
37+
!! Example:
38+
!!
39+
!! @verbatim
40+
!! use constants_mod, only: TFREEZE, grav_new => GRAV
41+
!! real, parameter :: grav_inv = 1.0 / grav_new
42+
!! tempc(:,:,:) = tempk(:,:,:) - TFREEZE
43+
!! geopotential(:,:) = height(:,:) * grav_new
44+
!! @endverbatim
2545

46+
!> @addtogroup constants_mod
47+
!> @{
2648
module constants_mod
2749

2850
!> rename to not conflict with any other version vars

coupler/atmos_ocean_fluxes.F90

-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@
3737
!!
3838
!! http://ocmip5.ipsl.fr/documentation/OCMIP/phase2/simulations/Biotic/HOWTO-Biotic.html
3939

40-
!> @file
41-
!> @brief File for @ref atmos_ocean_fluxes_mod
42-
4340
!> @addtogroup atmos_ocean_fluxes_mod
4441
!> @{
4542
module atmos_ocean_fluxes_mod

coupler/coupler_types.F90

-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
!> @brief This module contains type declarations for the coupler.
2222
!> @author Richard Slater, John Dunne
2323

24-
!> @file
25-
!> @brief File for @ref coupler_types_mod
26-
2724
!> @addtogroup coupler_types_mod
2825
!> @{
2926
module coupler_types_mod

coupler/ensemble_manager.F90

-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
!> @ingroup coupler
2121
!> @brief Routines for setting up and managing ensembles and ensemble pe lists.
2222

23-
!> @file
24-
!> @brief File for @ref ensemble_manager_mod
25-
2623
!> @addtogroup ensemble_manager_mod
2724
!> @{
2825
module ensemble_manager_mod

data_override/data_override.F90

-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@
3636
!! A field can be overriden globally (by default) or users can specify one or two regions in which
3737
!! data_override will take place, field values outside the region will not be affected.
3838

39-
!> @file
40-
!> @brief File for @ref data_override_mod
41-
4239
module data_override_mod
4340
use yaml_parser_mod
4441
use constants_mod, only: PI

data_override/get_grid_version.F90

+2-5
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@
1616
!* You should have received a copy of the GNU Lesser General Public
1717
!* License along with FMS. If not, see <http://www.gnu.org/licenses/>.
1818
!***********************************************************************
19-
!> @defgroup get_grid_version_fms2_io_mod get_grid_version_fms2_io_mod
19+
!> @defgroup get_grid_version_mod get_grid_version_mod
2020
!> @ingroup data_override
21-
!> @brief fms2_io implementations of grid routines for @ref data_override_mod
22-
23-
!> @file
24-
!> @brief File for @ref get_grid_version_mod
21+
!> @brief get_grid implementations and helper routines for @ref data_override_mod
2522

2623
!> @addtogroup get_grid_version_mod
2724
!> @{

0 commit comments

Comments
 (0)