Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sorc/fvcom_tools.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This is the CMake file for the fvcom_tools utility in the UFS_UTILS
# project.
#
# David Wright

set(fortran_src
kinds.f90
module_ncio.f90
Expand Down
28 changes: 12 additions & 16 deletions sorc/fvcom_tools.fd/kinds.f90
Original file line number Diff line number Diff line change
@@ -1,35 +1,31 @@
!> @file
!! . . . .
!! Module to hold specification kinds for variable declaration.
!! @brief Module to hold specification kinds for variable declaration.
!!
!! This module is based on (copied from) Paul vanDelst's
!! type_kinds module found in the community radiative transfer
!! model
!!
!! The numerical data types defined in this module are:
!! - r_single - specification kind for single precision (4-byte) real variable
!! - i_kind - generic specification kind for default integer
!! - r_kind - generic specification kind for default floating point
!!
!! @author David Wright, University of Michigan
module kinds
implicit none
private
!
! for name string
integer, parameter, public :: len_sta_name = 8
integer, parameter, public :: len_sta_name = 8 !< Name length.

! Integer type definitions below

! Integer types
integer, parameter, public :: i_kind = 4
integer, parameter, public :: i_short = 2
integer, parameter, public :: i_byte = 1
integer, parameter, public :: i_kind = 4 !< generic specification kind for default integer.
integer, parameter, public :: i_short = 2 !< generic specification kind for default short.
integer, parameter, public :: i_byte = 1 !< generic specification kind for default byte.
! Real types
integer, parameter, public :: r_single = 4 ! single precision
integer, parameter, public :: r_kind = 8
integer, parameter, public :: r_single = 4 !< specification kind for single precision (4-byte) real variable.
integer, parameter, public :: r_kind = 8 !< generic specification kind for default floating point

!
real(r_single),parameter,public :: rmissing=-99999.0
real(i_kind),parameter,public :: imissing=-99999
real(r_kind),parameter,public :: drmissing=-99999.0
real(r_single),parameter,public :: rmissing=-99999.0 !< Fill value for single real missing data.
real(i_kind),parameter,public :: imissing=-99999 !< Fill value for integer missing data.
real(r_kind),parameter,public :: drmissing=-99999.0 !< Fill value for double real missing data.

end module kinds
Loading