Skip to content

Commit

Permalink
Add basic doxygen to remaining repository routines
Browse files Browse the repository at this point in the history
Add basic doxygen to all files under 'fre-nctools.fd' and 'orog.fd'.

Removed unused include file - resovod.h - from orog.fd and converted
machine.h to a Fortran module.   Doxygen works better with
module files. 

Update Doxyfile.in to use full paths for better online display.

Issue ufs-community#191.
  • Loading branch information
GeorgeGayno-NOAA authored Jan 12, 2021
1 parent d0490d2 commit 7760027
Show file tree
Hide file tree
Showing 47 changed files with 160 additions and 127 deletions.
2 changes: 1 addition & 1 deletion docs/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ INLINE_INHERITED_MEMB = YES
# shortest path that makes the file name unique will be used
# The default value is: YES.

FULL_PATH_NAMES = NO
FULL_PATH_NAMES = YES

# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
# Stripping is only done if one of the specified strings matches the left-hand
Expand Down
4 changes: 3 additions & 1 deletion sorc/fre-nctools.fd/shared_lib/affinity.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @file */
/** @file
@brief Set or get CPU affinity.
*/
#define _GNU_SOURCE

#include <stdio.h>
Expand Down
4 changes: 3 additions & 1 deletion sorc/fre-nctools.fd/shared_lib/constant.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/** @file */
/** @file
@brief Set some global constants.
*/
#define RADIUS (6371000.)
#define STRING 255
4 changes: 3 additions & 1 deletion sorc/fre-nctools.fd/shared_lib/create_xgrid.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @file */
/** @file
@brief Utility routines to create and process exchange grids.
*/
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
4 changes: 3 additions & 1 deletion sorc/fre-nctools.fd/shared_lib/create_xgrid.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @file */
/** @file
@brief Function declarations for create_xgrid.c.
*/
#ifndef CREATE_XGRID_H_
#define CREATE_XGRID_H_
#ifndef MAXXGRID
Expand Down
5 changes: 5 additions & 0 deletions sorc/fre-nctools.fd/shared_lib/gradient.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!> @file
!!
!! @brief Utility routines to calculate gradient.
!!
!! @author Zhi.Liang@noaa.gov
module gradient_mod
! <CONTACT EMAIL="Zhi.Liang@noaa.gov">
! Zhi Liang
Expand Down
4 changes: 3 additions & 1 deletion sorc/fre-nctools.fd/shared_lib/gradient_c2l.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @file */
/** @file
@brief Compute gradient terms.
*/
#include <math.h>
#include <stdlib.h>
#include "constant.h"
Expand Down
4 changes: 3 additions & 1 deletion sorc/fre-nctools.fd/shared_lib/gradient_c2l.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @file */
/** @file
@brief Function declarations for gradient_c2l.c
*/
#ifndef GRADIENT_H_
#define GRADIENT_H_
void grad_c2l(const int *nlon, const int *nlat, const double *pin, const double *dx, const double *dy, const double *area,
Expand Down
3 changes: 3 additions & 0 deletions sorc/fre-nctools.fd/shared_lib/grid.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
!> @file
!! @brief Utility routines to compute grid parameters such as size and area.
!!
module grid_mod

use mpp_mod, only : mpp_root_pe
Expand Down
7 changes: 2 additions & 5 deletions sorc/fre-nctools.fd/shared_lib/interp.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/** @file */
/*
Copyright 2011 NOAA Geophysical Fluid Dynamics Lab, Princeton, NJ
This program is distributed under the terms of the GNU General Public
License. See the file COPYING contained in this directory
/** @file
@brief Interpolation utilities.
*/
#include <stdio.h>
#include <stdlib.h>
Expand Down
13 changes: 3 additions & 10 deletions sorc/fre-nctools.fd/shared_lib/interp.h
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
/** @file */
/*
Copyright 2011 NOAA Geophysical Fluid Dynamics Lab, Princeton, NJ
This program is distributed under the terms of the GNU General Public
License. See the file COPYING contained in this directory
/** @file
@brief Function declarations for interp.c
@author Zhi.Liang@noaa.gov
*/
#ifndef INTERP_H_
#define INTERP_H_
/*********************************************************************
interp.h
This header files contains defition of some interpolation routine (1-D or 2-D).
contact: Zhi.Liang@noaa.gov
*********************************************************************/
void cubic_spline_sp(int size1, int size2, const double *grid1, const double *grid2, const double *data1,
double *data2 );
void cubic_spline(int size1, int size2, const double *grid1, const double *grid2, const double *data1,
Expand Down
4 changes: 4 additions & 0 deletions sorc/fre-nctools.fd/shared_lib/mosaic.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
!> @file
!! @brief Read information from the mosaic file.
!! @author Zhi.Liang@noaa.gov
!!
module mosaic_mod

! <CONTACT EMAIL="Zhi.Liang@noaa.gov">
Expand Down
4 changes: 3 additions & 1 deletion sorc/fre-nctools.fd/shared_lib/mosaic_util.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @file */
/** @file
@brief Compute various grid statistics.
*/
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
11 changes: 4 additions & 7 deletions sorc/fre-nctools.fd/shared_lib/mosaic_util.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/** @file */
/***********************************************************************
mosaic_util.h
This header file provide some utilities routine that will be used in many tools.
contact: Zhi.Liang@noaa.gov
***********************************************************************/
/** @file
@brief Function declarations for mosaic_util.c.
@author Zhi.Liang@noaa.gov
*/
#ifndef MOSAIC_UTIL_H_
#define MOSAIC_UTIL_H_

Expand Down
4 changes: 3 additions & 1 deletion sorc/fre-nctools.fd/shared_lib/mpp.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @file */
/** @file
@brief MPI utility routines
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Expand Down
13 changes: 6 additions & 7 deletions sorc/fre-nctools.fd/shared_lib/mpp.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/** @file */
/** @file
/*********************************************************************
mpp.h
This header contains subroutine for parallel programming.
only MPI parallel is implemented.
Contact: Zhi.Liang@noaa.gov
********************************************************************/
@brief Function declarations for parallel programming. Only
MPI parallel is implemented.
@author Zhi.Liang@noaa.gov
*/
#ifndef MPP_H_
#define MPP_H_

Expand Down
12 changes: 5 additions & 7 deletions sorc/fre-nctools.fd/shared_lib/mpp_domain.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/** @file */
/*
**** MppDomain.cpp ****
MppDomain package
NOTE: only mpi is implemented here. if needed, shmem version
will be added on in the future.
Contact: Zhi.Liang@noaa.gov
/** @file
@brief MppDomain package
@note Only mpi is implemented here. If needed, shmem version
will be added on in the future.
@author Zhi.Liang@noaa.gov
*/
#include <stdlib.h>
#include <math.h>
Expand Down
21 changes: 11 additions & 10 deletions sorc/fre-nctools.fd/shared_lib/mpp_domain.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/** @file */
/****************************************************************
mpp_domain.h
This headers define interface to define domain layout,
define domain decomposition and global field to root pe,
some utilities routine to return domain decomposition.
Currently it only used in tools and assume only one domain is created.
If more domains are needed, we may define a struct to hold domain informaiton.
contact: Zhi.Liang@noaa.gov
/** @file
@brief Headers that define interface, domain layout,
domain decomposition and global field to root pe.
Some routines return domain decomposition.
****************************************************************/
@note Currently it only used in tools and assumes only one domain is created.
If more domains are needed, we may define a struct to hold domain informaiton.
@author Zhi.Liang@noaa.gov
*/
#ifndef MPP_DOMAIN_H_
#define MPP_DOMAIN_H_
#define max(a,b) (a>b ? a:b)
Expand Down
5 changes: 4 additions & 1 deletion sorc/fre-nctools.fd/shared_lib/mpp_io.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/** @file */
/** @file
@brief Utility routines to read/write netcdf.
@author Zhi.Liang@noaa.gov
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Expand Down
13 changes: 4 additions & 9 deletions sorc/fre-nctools.fd/shared_lib/mpp_io.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
/** @file */
/****************************************************************
mpp_io.h
This headers defines interface to read and write netcdf file. All the data
will be written out from root pe.
contact: Zhi.Liang@noaa.gov
****************************************************************/
/** @file
@brief Define constants and function declarations for mpp_io.c
@author Zhi.Liang@noaa.gov
*/
#ifndef MPP_IO_H_
#define MPP_IO_H_
#include <netcdf.h>
Expand Down
4 changes: 3 additions & 1 deletion sorc/fre-nctools.fd/shared_lib/read_mosaic.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @file */
/** @file
@brief Utilities to read the mosaic file.
*/
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
4 changes: 3 additions & 1 deletion sorc/fre-nctools.fd/shared_lib/read_mosaic.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @file */
/** @file
@brief Function declarations for read_mosaic.c
*/
#ifndef READ_MOSAIC_H_
#define READ_MOSAIC_H_

Expand Down
5 changes: 4 additions & 1 deletion sorc/fre-nctools.fd/shared_lib/tool_util.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/** @file */
/** @file
@brief Utility routines used by many tools.
@author Zhi.Liang@noaa.gov
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Expand Down
3 changes: 1 addition & 2 deletions sorc/fre-nctools.fd/shared_lib/tool_util.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** @file
This header file provide some utilities routine that will be used in many tools.
@brief Function declarations for tool_util.c
@author Zhi.Liang@noaa.gov
*/
#ifndef TOOL_UTIL_H_
Expand Down
3 changes: 3 additions & 0 deletions sorc/fre-nctools.fd/tools/fregrid/bilinear_interp.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/** @file
@brief Routines to perform bilinear interpolation.
*/
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
3 changes: 3 additions & 0 deletions sorc/fre-nctools.fd/tools/fregrid/bilinear_interp.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/** @file
@brief Function declarations for bilinear interpolation module.
*/
#ifndef BILINEAR_INTERP_H_
#define BILINEAR_INTERP_H_
void setup_bilinear_interp(int ntiles_in, const Grid_config *grid_in, int ntiles_out, const Grid_config *grid_out,
Expand Down
3 changes: 3 additions & 0 deletions sorc/fre-nctools.fd/tools/fregrid/conserve_interp.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/** @file
@brief Routines to perform conservative interpolation.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Expand Down
3 changes: 3 additions & 0 deletions sorc/fre-nctools.fd/tools/fregrid/conserve_interp.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/** @file
@brief Function declarations for conservative interpolation module.
*/
#ifndef CONSERVE_INTERP_H_
#define CONSERVE_INTERP_H_
#include "globals.h"
Expand Down
22 changes: 4 additions & 18 deletions sorc/fre-nctools.fd/tools/fregrid/fregrid.c
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
/*
This program remaps (scalar or vector) data from the input grid
/** @file
@brief This program remaps (scalar or vector) data from the input grid
to the output grid
AUTHOR: Zhi Liang (Zhi.Liang@noaa.gov)
@author Zhi Liang (Zhi.Liang@noaa.gov)
NOAA Geophysical Fluid Dynamics Lab, Princeton, NJ
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
For the full text of the GNU General Public License,
write to: Free Software Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.
-----------------------------------------------------------------------
*/
#include <stdlib.h>
#include <stdio.h>
Expand Down
3 changes: 3 additions & 0 deletions sorc/fre-nctools.fd/tools/fregrid/fregrid_util.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/** @file
@brief Utilities for the fregrid program.
*/
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
3 changes: 3 additions & 0 deletions sorc/fre-nctools.fd/tools/fregrid/fregrid_util.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/** @file
@brief Function declarations for the fregrid utility module.
*/
#ifndef FREGRID_UTIL_H_
#define FREGRID_UTIL_H_
#include "globals.h"
Expand Down
3 changes: 3 additions & 0 deletions sorc/fre-nctools.fd/tools/fregrid/globals.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/** @file
@brief Define global constants and type definitions.
*/
#ifndef GLOBALS_H_
#define GLOBALS_H_
#include <netcdf.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/** @file
@brief Create conformal cubic grids.
*/
#include <stdlib.h>
#include <stdio.h>
#include <complex.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/** @file
@brief Create gnomonic cubic grids.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Expand Down
6 changes: 2 additions & 4 deletions sorc/fre-nctools.fd/tools/make_hgrid/create_grid_from_file.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/*
Copyright 2011 NOAA Geophysical Fluid Dynamics Lab, Princeton, NJ
This program is distributed under the terms of the GNU General Public
License. See the file COPYING contained in this directory
/** @file
@brief Create grid from a file.
*/
#include <stdlib.h>
#include <stdio.h>
Expand Down
10 changes: 5 additions & 5 deletions sorc/fre-nctools.fd/tools/make_hgrid/create_hgrid.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*******************************************************************************
create_hgrid.h
/** @file
This header file provide interface to create different types of horizontal
grid. geographical grid location, cell length, cell area and rotation
grid. Geographical grid location, cell length, cell area and rotation
angle are returned. All the returned data are on supergrid.
contact: Zhi.Liang@noaa.gov
@author Zhi.Liang@noaa.gov
*******************************************************************************/
*/
#ifndef CREATE_HGRID_H_
#define CREATE_HGRID_H_
void create_regular_lonlat_grid( int *nxbnds, int *nybnds, double *xbnds, double *ybnds,
Expand Down
4 changes: 4 additions & 0 deletions sorc/fre-nctools.fd/tools/make_hgrid/create_lonlat_grid.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/** @file
@brief Routines to create regular lat/lon, spectral, tripolar
and f-plane grids.
*/
#include <stdlib.h>
#include <stdio.h>
#include <complex.h>
Expand Down
Loading

0 comments on commit 7760027

Please sign in to comment.