MOM_document module reference

The subroutines here provide hooks for document generation functions at various levels of granularity.

Data Types

doc_type

Length of interface/message strings

link_msg

A linked list of the parameter documentation messages that have been issued so far.

Generic Interfaces

doc_param

Document parameter values

Functions/Subroutines

doc_param_none

This subroutine handles parameter documentation with no value.

doc_param_logical

This subroutine handles parameter documentation for logicals.

doc_param_logical_array

This subroutine handles parameter documentation for arrays of logicals.

doc_param_int

This subroutine handles parameter documentation for integers.

doc_param_int_array

This subroutine handles parameter documentation for arrays of integers.

doc_param_real

This subroutine handles parameter documentation for reals.

doc_param_real_array

This subroutine handles parameter documentation for arrays of reals.

doc_param_char

This subroutine handles parameter documentation for character strings.

doc_openBlock

This subroutine handles documentation for opening a parameter block.

doc_closeBlock

This subroutine handles documentation for closing a parameter block.

doc_param_time

This subroutine handles parameter documentation for time-type variables.

writeMessageAndDesc

This subroutine writes out the message and description to the documentation files.

time_string

This function returns a string with a time type formatted as seconds (perhaps including a fractional number of seconds) and days

real_string

This function returns a string with a real formatted like '(G)'

real_array_string

Returns a character string of a comma-separated, compact formatted, reals e.g. "1., 2., 5*3., 5.E2", that give the list of values.

int_array_string

Returns a character string of a comma-separated, compact formatted, integers e.g. "1, 2, 7*3, 500", that give the list of values.

testFormattedFloatIsReal

This function tests whether a real value is encoded in a string.

int_string

This function returns a string with an integer formatted like '(I)'

logical_string

This function returns a string with an logical formatted like '(L)'

define_string

This function returns a string for formatted parameter assignment

undef_string

This function returns a string for formatted false logicals

doc_module

This subroutine handles the module documentation

doc_subroutine

This subroutine handles the subroutine documentation

doc_function

This subroutine handles the function documentation

doc_init

Initialize the parameter documentation

open_doc_file

This subroutine allocates and populates a structure that controls where the documentation occurs and its formatting, and opens up the files controlled by this structure

find_unused_unit_number

Find an unused unit number, returning >0 if found, and triggering a FATAL error if not.

doc_end

This subroutine closes the files controlled by doc, and sets flags in doc to indicate that parameterization is no longer permitted.

mesgHasBeenDocumented

Returns true if documentation has already been written

Type Documentation

type, public :: doc_type

Length of interface/message strings

A structure that controls where the documentation occurs, its veborsity and formatting.

Parameters
  • unitAll

    The open unit number for docFileBase + .all.

  • unitShort

    The open unit number for docFileBase + .short.

  • unitLayout

    The open unit number for docFileBase + .layout.

  • unitDebugging

    The open unit number for docFileBase + .debugging.

  • filesAreOpen

    True if any files were successfully opened.

  • docFileBase

    The basename of the files where run-time parameters, settings and defaults are documented.

  • complete

    If true, document all parameters.

  • minimal

    If true, document non-default parameters.

  • layout

    If true, document layout parameters.

  • debugging

    If true, document debugging parameters.

  • defineSyntax

    If true, use '#def' syntax instead of a=b syntax

  • warnOnConflicts

    Cause a WARNING error if defaults differ.

  • commentColumn

    Number of spaces before the comment marker.

  • max_line_len

    The maximum length of message lines.

  • chain_msg

    Database of messages

  • blockPrefix

    The full name of the current block.

Generic Interface Documentation

interface doc_param

Document parameter values

Callers call graph
Callers of mom_document::interface::doc_param calls cluster_mom_document MOM_document cluster_mom_file_parser MOM_file_parser mom_document::interface::doc_param doc_param (interface) mom_file_parser::log_param_char log_param_char [private/internal] mom_file_parser::log_param_char->mom_document::interface::doc_param mom_file_parser::log_param_int log_param_int [private/internal] mom_file_parser::log_param_int->mom_document::interface::doc_param mom_file_parser::log_param_int_array log_param_int_array [private/internal] mom_file_parser::log_param_int_array->mom_document::interface::doc_param mom_file_parser::log_param_logical log_param_logical [private/internal] mom_file_parser::log_param_logical->mom_document::interface::doc_param mom_file_parser::log_param_real log_param_real [private/internal] mom_file_parser::log_param_real->mom_document::interface::doc_param mom_file_parser::log_param_real_array log_param_real_array [private/internal] mom_file_parser::log_param_real_array->mom_document::interface::doc_param mom_file_parser::log_param_time log_param_time [private/internal] mom_file_parser::log_param_time->mom_document::interface::doc_param
Text view

Functions/Subroutine Documentation

subroutine doc_param_none(doc, varname, desc, units)

This subroutine handles parameter documentation with no value.

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • varname [in]

    The name of the parameter being documented

  • desc [in]

    A description of the parameter being documented

  • units [in]

    The units of the parameter being documented

Callees call graph
Callees of mom_document::doc_param_none calls cluster_mom_document MOM_document cluster_mom_error_infra MOM_error_infra mom_document::doc_param_none doc_param_none [private/internal] mom_document::mesghasbeendocumented mesgHasBeenDocumented [private/internal] mom_document::doc_param_none->mom_document::mesghasbeendocumented mom_document::open_doc_file open_doc_file [private/internal] mom_document::doc_param_none->mom_document::open_doc_file mom_document::writemessageanddesc writeMessageAndDesc [private/internal] mom_document::doc_param_none->mom_document::writemessageanddesc mom_error_infra::is_root_pe is_root_pe mom_document::doc_param_none->mom_error_infra::is_root_pe
Text view
subroutine doc_param_logical(doc, varname, desc, units, val, default, layoutParam, debuggingParam, like_default)

This subroutine handles parameter documentation for logicals.

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • varname [in]

    The name of the parameter being documented

  • desc [in]

    A description of the parameter being documented

  • units [in]

    The units of the parameter being documented

  • val [in]

    The value of this parameter

  • default [in]

    The default value of this parameter

  • layoutParam [in]

    If present and true, this is a layout parameter.

  • debuggingParam [in]

    If present and true, this is a debugging parameter.

  • like_default [in]

    If present and true, log this parameter as though it has the default value, even if there is no default.

Callees call graph
Callees of mom_document::doc_param_logical calls cluster_mom_document MOM_document cluster_mom_error_infra MOM_error_infra mom_document::define_string define_string [private/internal] mom_document::doc_param_logical doc_param_logical [private/internal] mom_document::doc_param_logical->mom_document::define_string mom_document::mesghasbeendocumented mesgHasBeenDocumented [private/internal] mom_document::doc_param_logical->mom_document::mesghasbeendocumented mom_document::open_doc_file open_doc_file [private/internal] mom_document::doc_param_logical->mom_document::open_doc_file mom_document::undef_string undef_string [private/internal] mom_document::doc_param_logical->mom_document::undef_string mom_document::writemessageanddesc writeMessageAndDesc [private/internal] mom_document::doc_param_logical->mom_document::writemessageanddesc mom_error_infra::is_root_pe is_root_pe mom_document::doc_param_logical->mom_error_infra::is_root_pe
Text view
subroutine doc_param_logical_array(doc, varname, desc, units, vals, default, layoutParam, debuggingParam, like_default)

This subroutine handles parameter documentation for arrays of logicals.

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • varname [in]

    The name of the parameter being documented

  • desc [in]

    A description of the parameter being documented

  • units [in]

    The units of the parameter being documented

  • vals [in]

    The array of values to record

  • default [in]

    The default value of this parameter

  • layoutParam [in]

    If present and true, this is a layout parameter.

  • debuggingParam [in]

    If present and true, this is a debugging parameter.

  • like_default [in]

    If present and true, log this parameter as though it has the default value, even if there is no default.

Callees call graph
Callees of mom_document::doc_param_logical_array calls cluster_mom_document MOM_document cluster_mom_error_infra MOM_error_infra mom_document::define_string define_string [private/internal] mom_document::doc_param_logical_array doc_param_logical_array [private/internal] mom_document::doc_param_logical_array->mom_document::define_string mom_document::mesghasbeendocumented mesgHasBeenDocumented [private/internal] mom_document::doc_param_logical_array->mom_document::mesghasbeendocumented mom_document::open_doc_file open_doc_file [private/internal] mom_document::doc_param_logical_array->mom_document::open_doc_file mom_document::writemessageanddesc writeMessageAndDesc [private/internal] mom_document::doc_param_logical_array->mom_document::writemessageanddesc mom_error_infra::is_root_pe is_root_pe mom_document::doc_param_logical_array->mom_error_infra::is_root_pe
Text view
subroutine doc_param_int(doc, varname, desc, units, val, default, layoutParam, debuggingParam, like_default)

This subroutine handles parameter documentation for integers.

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • varname [in]

    The name of the parameter being documented

  • desc [in]

    A description of the parameter being documented

  • units [in]

    The units of the parameter being documented

  • val [in]

    The value of this parameter

  • default [in]

    The default value of this parameter

  • layoutParam [in]

    If present and true, this is a layout parameter.

  • debuggingParam [in]

    If present and true, this is a debugging parameter.

  • like_default [in]

    If present and true, log this parameter as though it has the default value, even if there is no default.

Callees call graph
Callees of mom_document::doc_param_int calls cluster_mom_document MOM_document cluster_mom_error_infra MOM_error_infra mom_document::define_string define_string [private/internal] mom_document::doc_param_int doc_param_int [private/internal] mom_document::doc_param_int->mom_document::define_string mom_document::int_string int_string [private/internal] mom_document::doc_param_int->mom_document::int_string mom_document::mesghasbeendocumented mesgHasBeenDocumented [private/internal] mom_document::doc_param_int->mom_document::mesghasbeendocumented mom_document::open_doc_file open_doc_file [private/internal] mom_document::doc_param_int->mom_document::open_doc_file mom_document::writemessageanddesc writeMessageAndDesc [private/internal] mom_document::doc_param_int->mom_document::writemessageanddesc mom_error_infra::is_root_pe is_root_pe mom_document::doc_param_int->mom_error_infra::is_root_pe
Text view
subroutine doc_param_int_array(doc, varname, desc, units, vals, default, defaults, layoutParam, debuggingParam, like_default)

This subroutine handles parameter documentation for arrays of integers.

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • varname [in]

    The name of the parameter being documented

  • desc [in]

    A description of the parameter being documented

  • units [in]

    The units of the parameter being documented

  • vals [in]

    The array of values to record

  • default [in]

    The uniform default value of this parameter

  • defaults [in]

    The element-wise default values of this parameter

  • layoutParam [in]

    If present and true, this is a layout parameter.

  • debuggingParam [in]

    If present and true, this is a debugging parameter.

  • like_default [in]

    If present and true, log this parameter as though it has the default value, even if there is no default.

Callees call graph
Callees of mom_document::doc_param_int_array calls cluster_mom_document MOM_document cluster_mom_error_infra MOM_error_infra mom_document::define_string define_string [private/internal] mom_document::doc_param_int_array doc_param_int_array [private/internal] mom_document::doc_param_int_array->mom_document::define_string mom_document::int_array_string int_array_string [private/internal] mom_document::doc_param_int_array->mom_document::int_array_string mom_document::int_string int_string [private/internal] mom_document::doc_param_int_array->mom_document::int_string mom_document::mesghasbeendocumented mesgHasBeenDocumented [private/internal] mom_document::doc_param_int_array->mom_document::mesghasbeendocumented mom_document::open_doc_file open_doc_file [private/internal] mom_document::doc_param_int_array->mom_document::open_doc_file mom_document::writemessageanddesc writeMessageAndDesc [private/internal] mom_document::doc_param_int_array->mom_document::writemessageanddesc mom_error_infra::is_root_pe is_root_pe mom_document::doc_param_int_array->mom_error_infra::is_root_pe
Text view
subroutine doc_param_real(doc, varname, desc, units, val, default, debuggingParam, like_default)

This subroutine handles parameter documentation for reals.

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • varname [in]

    The name of the parameter being documented

  • desc [in]

    A description of the parameter being documented

  • units [in]

    The units of the parameter being documented

  • val [in]

    The value of this parameter

  • default [in]

    The default value of this parameter

  • debuggingParam [in]

    If present and true, this is a debugging parameter.

  • like_default [in]

    If present and true, log this parameter as though it has the default value, even if there is no default.

Callees call graph
Callees of mom_document::doc_param_real calls cluster_mom_document MOM_document cluster_mom_error_infra MOM_error_infra mom_document::define_string define_string [private/internal] mom_document::doc_param_real doc_param_real [private/internal] mom_document::doc_param_real->mom_document::define_string mom_document::mesghasbeendocumented mesgHasBeenDocumented [private/internal] mom_document::doc_param_real->mom_document::mesghasbeendocumented mom_document::open_doc_file open_doc_file [private/internal] mom_document::doc_param_real->mom_document::open_doc_file mom_document::real_string real_string [private/internal] mom_document::doc_param_real->mom_document::real_string mom_document::writemessageanddesc writeMessageAndDesc [private/internal] mom_document::doc_param_real->mom_document::writemessageanddesc mom_error_infra::is_root_pe is_root_pe mom_document::doc_param_real->mom_error_infra::is_root_pe
Text view
subroutine doc_param_real_array(doc, varname, desc, units, vals, default, defaults, debuggingParam, like_default)

This subroutine handles parameter documentation for arrays of reals.

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • varname [in]

    The name of the parameter being documented

  • desc [in]

    A description of the parameter being documented

  • units [in]

    The units of the parameter being documented

  • vals [in]

    The array of values to record

  • default [in]

    A uniform default value of this parameter

  • defaults [in]

    The element-wise default values of this parameter

  • debuggingParam [in]

    If present and true, this is a debugging parameter.

  • like_default [in]

    If present and true, log this parameter as though it has the default value, even if there is no default.

Callees call graph
Callees of mom_document::doc_param_real_array calls cluster_mom_document MOM_document cluster_mom_error_infra MOM_error_infra mom_document::define_string define_string [private/internal] mom_document::doc_param_real_array doc_param_real_array [private/internal] mom_document::doc_param_real_array->mom_document::define_string mom_document::mesghasbeendocumented mesgHasBeenDocumented [private/internal] mom_document::doc_param_real_array->mom_document::mesghasbeendocumented mom_document::open_doc_file open_doc_file [private/internal] mom_document::doc_param_real_array->mom_document::open_doc_file mom_document::real_array_string real_array_string [private/internal] mom_document::doc_param_real_array->mom_document::real_array_string mom_document::real_string real_string [private/internal] mom_document::doc_param_real_array->mom_document::real_string mom_document::writemessageanddesc writeMessageAndDesc [private/internal] mom_document::doc_param_real_array->mom_document::writemessageanddesc mom_error_infra::is_root_pe is_root_pe mom_document::doc_param_real_array->mom_error_infra::is_root_pe
Text view
subroutine doc_param_char(doc, varname, desc, units, val, default, layoutParam, debuggingParam, like_default)

This subroutine handles parameter documentation for character strings.

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • varname [in]

    The name of the parameter being documented

  • desc [in]

    A description of the parameter being documented

  • units [in]

    The units of the parameter being documented

  • val [in]

    The value of the parameter

  • default [in]

    The default value of this parameter

  • layoutParam [in]

    If present and true, this is a layout parameter.

  • debuggingParam [in]

    If present and true, this is a debugging parameter.

  • like_default [in]

    If present and true, log this parameter as though it has the default value, even if there is no default.

Callees call graph
Callees of mom_document::doc_param_char calls cluster_mom_document MOM_document cluster_mom_error_infra MOM_error_infra mom_document::define_string define_string [private/internal] mom_document::doc_param_char doc_param_char [private/internal] mom_document::doc_param_char->mom_document::define_string mom_document::mesghasbeendocumented mesgHasBeenDocumented [private/internal] mom_document::doc_param_char->mom_document::mesghasbeendocumented mom_document::open_doc_file open_doc_file [private/internal] mom_document::doc_param_char->mom_document::open_doc_file mom_document::writemessageanddesc writeMessageAndDesc [private/internal] mom_document::doc_param_char->mom_document::writemessageanddesc mom_error_infra::is_root_pe is_root_pe mom_document::doc_param_char->mom_error_infra::is_root_pe
Text view
subroutine doc_openBlock(doc, blockName, desc)

This subroutine handles documentation for opening a parameter block.

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • blockName [in]

    The name of the parameter block being opened

  • desc [in]

    A description of the parameter block being opened

Callees call graph
Callees of mom_document::doc_openblock calls cluster_mom_document MOM_document cluster_mom_error_infra MOM_error_infra mom_document::doc_openblock doc_openBlock mom_document::open_doc_file open_doc_file [private/internal] mom_document::doc_openblock->mom_document::open_doc_file mom_document::writemessageanddesc writeMessageAndDesc [private/internal] mom_document::doc_openblock->mom_document::writemessageanddesc mom_error_infra::is_root_pe is_root_pe mom_document::doc_openblock->mom_error_infra::is_root_pe
Text view
Callers call graph
Callers of mom_document::doc_openblock calls cluster_mom_document MOM_document cluster_mom_file_parser MOM_file_parser mom_document::doc_openblock doc_openBlock mom_file_parser::openparameterblock openParameterBlock mom_file_parser::openparameterblock->mom_document::doc_openblock
Text view
subroutine doc_closeBlock(doc, blockName)

This subroutine handles documentation for closing a parameter block.

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • blockName [in]

    The name of the parameter block being closed

Callees call graph
Callees of mom_document::doc_closeblock calls cluster_mom_document MOM_document cluster_mom_error_infra MOM_error_infra mom_document::doc_closeblock doc_closeBlock mom_document::open_doc_file open_doc_file [private/internal] mom_document::doc_closeblock->mom_document::open_doc_file mom_document::writemessageanddesc writeMessageAndDesc [private/internal] mom_document::doc_closeblock->mom_document::writemessageanddesc mom_error_infra::is_root_pe is_root_pe mom_document::doc_closeblock->mom_error_infra::is_root_pe
Text view
Callers call graph
Callers of mom_document::doc_closeblock calls cluster_mom_document MOM_document cluster_mom_file_parser MOM_file_parser mom_document::doc_closeblock doc_closeBlock mom_file_parser::closeparameterblock closeParameterBlock mom_file_parser::closeparameterblock->mom_document::doc_closeblock
Text view
subroutine doc_param_time(doc, varname, desc, val, default, units, debuggingParam, like_default)

This subroutine handles parameter documentation for time-type variables.

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • varname [in]

    The name of the parameter being documented

  • desc [in]

    A description of the parameter being documented

  • val [in]

    The value of the parameter

  • default [in]

    The default value of this parameter

  • units [in]

    The units of the parameter being documented

  • debuggingParam [in]

    If present and true, this is a debugging parameter.

  • like_default [in]

    If present and true, log this parameter as though it has the default value, even if there is no default.

Callees call graph
Callees of mom_document::doc_param_time calls cluster_mom_document MOM_document cluster_mom_error_infra MOM_error_infra mom_document::define_string define_string [private/internal] mom_document::doc_param_time doc_param_time [private/internal] mom_document::doc_param_time->mom_document::define_string mom_document::mesghasbeendocumented mesgHasBeenDocumented [private/internal] mom_document::doc_param_time->mom_document::mesghasbeendocumented mom_document::open_doc_file open_doc_file [private/internal] mom_document::doc_param_time->mom_document::open_doc_file mom_document::time_string time_string [private/internal] mom_document::doc_param_time->mom_document::time_string mom_document::writemessageanddesc writeMessageAndDesc [private/internal] mom_document::doc_param_time->mom_document::writemessageanddesc mom_error_infra::is_root_pe is_root_pe mom_document::doc_param_time->mom_error_infra::is_root_pe
Text view
subroutine writeMessageAndDesc(doc, vmesg, desc, valueWasDefault, indent, layoutParam, debuggingParam)

This subroutine writes out the message and description to the documentation files.

Parameters
  • doc [in]

    A pointer to a structure that controls where the documentation occurs and its formatting

  • vmesg [in]

    A message with the parameter name, units, and default value.

  • desc [in]

    A description of the parameter being documented

  • valueWasDefault [in]

    If true, this parameter has its default value

  • indent [in]

    An amount by which to indent this message

  • layoutParam [in]

    If present and true, this is a layout parameter.

  • debuggingParam [in]

    If present and true, this is a debugging parameter.

Callers call graph
Callers of mom_document::writemessageanddesc calls cluster_mom_document MOM_document mom_document::doc_closeblock doc_closeBlock mom_document::writemessageanddesc writeMessageAndDesc [private/internal] mom_document::doc_closeblock->mom_document::writemessageanddesc mom_document::doc_module doc_module mom_document::doc_module->mom_document::writemessageanddesc mom_document::doc_openblock doc_openBlock mom_document::doc_openblock->mom_document::writemessageanddesc mom_document::doc_param_char doc_param_char [private/internal] mom_document::doc_param_char->mom_document::writemessageanddesc mom_document::doc_param_int doc_param_int [private/internal] mom_document::doc_param_int->mom_document::writemessageanddesc mom_document::doc_param_int_array doc_param_int_array [private/internal] mom_document::doc_param_int_array->mom_document::writemessageanddesc mom_document::doc_param_logical doc_param_logical [private/internal] mom_document::doc_param_logical->mom_document::writemessageanddesc mom_document::doc_param_logical_array doc_param_logical_array [private/internal] mom_document::doc_param_logical_array->mom_document::writemessageanddesc mom_document::doc_param_none doc_param_none [private/internal] mom_document::doc_param_none->mom_document::writemessageanddesc mom_document::doc_param_real doc_param_real [private/internal] mom_document::doc_param_real->mom_document::writemessageanddesc mom_document::doc_param_real_array doc_param_real_array [private/internal] mom_document::doc_param_real_array->mom_document::writemessageanddesc mom_document::doc_param_time doc_param_time [private/internal] mom_document::doc_param_time->mom_document::writemessageanddesc
Text view
function time_string(time)

This function returns a string with a time type formatted as seconds (perhaps including a fractional number of seconds) and days

Parameters
  • time [in]

    The time type being translated

Callees call graph
Callees of mom_document::time_string calls cluster_mom_document MOM_document mom_document::int_string int_string [private/internal] mom_document::time_string time_string [private/internal] mom_document::time_string->mom_document::int_string
Text view
Callers call graph
Callers of mom_document::time_string calls cluster_mom_document MOM_document mom_document::doc_param_time doc_param_time [private/internal] mom_document::time_string time_string [private/internal] mom_document::doc_param_time->mom_document::time_string
Text view

External calls

time_manager_mod
  • get_ticks_per_second (time_manager_mod::get_ticks_per_second)

  • get_time (time_manager_mod::get_time)

function real_string(val)

This function returns a string with a real formatted like '(G)'

Parameters
  • val [in]

    The value being written into a string

Callees call graph
Callees of mom_document::real_string calls cluster_mom_document MOM_document mom_document::real_string real_string [private/internal] mom_document::testformattedfloatisreal testFormattedFloatIsReal [private/internal] mom_document::real_string->mom_document::testformattedfloatisreal
Text view
Callers call graph
Callers of mom_document::real_string calls cluster_mom_document MOM_document mom_document::doc_param_real doc_param_real [private/internal] mom_document::real_string real_string [private/internal] mom_document::doc_param_real->mom_document::real_string mom_document::doc_param_real_array doc_param_real_array [private/internal] mom_document::doc_param_real_array->mom_document::real_string mom_document::real_array_string real_array_string [private/internal] mom_document::real_array_string->mom_document::real_string
Text view
function real_array_string(vals, sep)

Returns a character string of a comma-separated, compact formatted, reals e.g. "1., 2., 5*3., 5.E2", that give the list of values.

Parameters
  • real_array_string

    The output string listing vals

  • vals [in]

    The array of values to record

  • sep [in]

    The separator between successive values, by default it is ', '.

Callees call graph
Callees of mom_document::real_array_string calls cluster_mom_document MOM_document mom_document::int_string int_string [private/internal] mom_document::real_array_string real_array_string [private/internal] mom_document::real_array_string->mom_document::int_string mom_document::real_string real_string [private/internal] mom_document::real_array_string->mom_document::real_string
Text view
Callers call graph
Callers of mom_document::real_array_string calls cluster_mom_document MOM_document mom_document::doc_param_real_array doc_param_real_array [private/internal] mom_document::real_array_string real_array_string [private/internal] mom_document::doc_param_real_array->mom_document::real_array_string
Text view
function int_array_string(vals, sep)

Returns a character string of a comma-separated, compact formatted, integers e.g. "1, 2, 7*3, 500", that give the list of values.

Parameters
  • int_array_string

    The output string listing vals

  • vals [in]

    The array of values to record

  • sep [in]

    The separator between successive values, by default it is ', '.

Callees call graph
Callees of mom_document::int_array_string calls cluster_mom_document MOM_document mom_document::int_array_string int_array_string [private/internal] mom_document::int_string int_string [private/internal] mom_document::int_array_string->mom_document::int_string
Text view
Callers call graph
Callers of mom_document::int_array_string calls cluster_mom_document MOM_document mom_document::doc_param_int_array doc_param_int_array [private/internal] mom_document::int_array_string int_array_string [private/internal] mom_document::doc_param_int_array->mom_document::int_array_string
Text view
function testFormattedFloatIsReal(str, val)

This function tests whether a real value is encoded in a string.

Parameters
  • str [in]

    The string that match val

  • val [in]

    The value being tested

Callers call graph
Callers of mom_document::testformattedfloatisreal calls cluster_mom_document MOM_document mom_document::real_string real_string [private/internal] mom_document::testformattedfloatisreal testFormattedFloatIsReal [private/internal] mom_document::real_string->mom_document::testformattedfloatisreal
Text view
function int_string(val)

This function returns a string with an integer formatted like '(I)'

Parameters
  • val [in]

    The value being written into a string

Callers call graph
Callers of mom_document::int_string calls cluster_mom_document MOM_document mom_document::doc_param_int doc_param_int [private/internal] mom_document::int_string int_string [private/internal] mom_document::doc_param_int->mom_document::int_string mom_document::doc_param_int_array doc_param_int_array [private/internal] mom_document::doc_param_int_array->mom_document::int_string mom_document::int_array_string int_array_string [private/internal] mom_document::int_array_string->mom_document::int_string mom_document::real_array_string real_array_string [private/internal] mom_document::real_array_string->mom_document::int_string mom_document::time_string time_string [private/internal] mom_document::time_string->mom_document::int_string
Text view
function logical_string(val)

This function returns a string with an logical formatted like '(L)'

Parameters
  • val [in]

    The value being written into a string

function define_string(doc, varName, valString, units)

This function returns a string for formatted parameter assignment

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • varName [in]

    The name of the parameter being documented

  • valString [in]

    A string containing the value of the parameter

  • units [in]

    The units of the parameter being documented

Callers call graph
Callers of mom_document::define_string calls cluster_mom_document MOM_document mom_document::define_string define_string [private/internal] mom_document::doc_param_char doc_param_char [private/internal] mom_document::doc_param_char->mom_document::define_string mom_document::doc_param_int doc_param_int [private/internal] mom_document::doc_param_int->mom_document::define_string mom_document::doc_param_int_array doc_param_int_array [private/internal] mom_document::doc_param_int_array->mom_document::define_string mom_document::doc_param_logical doc_param_logical [private/internal] mom_document::doc_param_logical->mom_document::define_string mom_document::doc_param_logical_array doc_param_logical_array [private/internal] mom_document::doc_param_logical_array->mom_document::define_string mom_document::doc_param_real doc_param_real [private/internal] mom_document::doc_param_real->mom_document::define_string mom_document::doc_param_real_array doc_param_real_array [private/internal] mom_document::doc_param_real_array->mom_document::define_string mom_document::doc_param_time doc_param_time [private/internal] mom_document::doc_param_time->mom_document::define_string
Text view
function undef_string(doc, varName, units)

This function returns a string for formatted false logicals

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • varName [in]

    The name of the parameter being documented

  • units [in]

    The units of the parameter being documented

Callers call graph
Callers of mom_document::undef_string calls cluster_mom_document MOM_document mom_document::doc_param_logical doc_param_logical [private/internal] mom_document::undef_string undef_string [private/internal] mom_document::doc_param_logical->mom_document::undef_string
Text view
subroutine doc_module(doc, modname, desc, log_to_all, all_default, layoutMod, debuggingMod)

This subroutine handles the module documentation

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • modname [in]

    The name of the module being documented

  • desc [in]

    A description of the module being documented

  • log_to_all [in]

    If present and true, log this parameter to the ..._doc.all files, even if this module also has layout or debugging parameters.

  • all_default [in]

    If true, all parameters take their default values.

  • layoutMod [in]

    If present and true, this module has layout parameters.

  • debuggingMod [in]

    If present and true, this module has debugging parameters.

Callees call graph
Callees of mom_document::doc_module calls cluster_mom_document MOM_document cluster_mom_error_infra MOM_error_infra mom_document::doc_module doc_module mom_document::open_doc_file open_doc_file [private/internal] mom_document::doc_module->mom_document::open_doc_file mom_document::writemessageanddesc writeMessageAndDesc [private/internal] mom_document::doc_module->mom_document::writemessageanddesc mom_error_infra::is_root_pe is_root_pe mom_document::doc_module->mom_error_infra::is_root_pe
Text view
Callers call graph
Callers of mom_document::doc_module calls cluster_mom_document MOM_document cluster_mom_file_parser MOM_file_parser mom_document::doc_module doc_module mom_file_parser::log_version_cs log_version_cs [private/internal] mom_file_parser::log_version_cs->mom_document::doc_module
Text view
subroutine doc_subroutine(doc, modname, subname, desc)

This subroutine handles the subroutine documentation

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • modname [in]

    The name of the module being documented

  • subname [in]

    The name of the subroutine being documented

  • desc [in]

    A description of the subroutine being documented

Callees call graph
Callees of mom_document::doc_subroutine calls cluster_mom_document MOM_document cluster_mom_error_infra MOM_error_infra mom_document::doc_subroutine doc_subroutine mom_document::open_doc_file open_doc_file [private/internal] mom_document::doc_subroutine->mom_document::open_doc_file mom_error_infra::is_root_pe is_root_pe mom_document::doc_subroutine->mom_error_infra::is_root_pe
Text view
subroutine doc_function(doc, modname, fnname, desc)

This subroutine handles the function documentation

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • modname [in]

    The name of the module being documented

  • fnname [in]

    The name of the function being documented

  • desc [in]

    A description of the function being documented

Callees call graph
Callees of mom_document::doc_function calls cluster_mom_document MOM_document cluster_mom_error_infra MOM_error_infra mom_document::doc_function doc_function mom_document::open_doc_file open_doc_file [private/internal] mom_document::doc_function->mom_document::open_doc_file mom_error_infra::is_root_pe is_root_pe mom_document::doc_function->mom_error_infra::is_root_pe
Text view
subroutine doc_init(docFileBase, doc, minimal, complete, layout, debugging)

Initialize the parameter documentation

Parameters
  • docFileBase [in]

    The base file name for this set of parameters, for example MOM_parameter_doc

  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • minimal [in]

    If present and true, write out the files (.short) documenting those parameters that do not take on their default values.

  • complete [in]

    If present and true, write out the (.all) files documenting all parameters

  • layout [in]

    If present and true, write out the (.layout) files documenting the layout parameters

  • debugging [in]

    If present and true, write out the (.debugging) files documenting the debugging parameters

Callers call graph
Callers of mom_document::doc_init calls cluster_mom_document MOM_document cluster_mom_file_parser MOM_file_parser mom_document::doc_init doc_init mom_file_parser::open_param_file open_param_file mom_file_parser::open_param_file->mom_document::doc_init
Text view
subroutine open_doc_file(doc)

This subroutine allocates and populates a structure that controls where the documentation occurs and its formatting, and opens up the files controlled by this structure

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

Callees call graph
Callees of mom_document::open_doc_file calls cluster_mom_document MOM_document cluster_mom_error_handler MOM_error_handler cluster_mom_error_infra MOM_error_infra mom_document::find_unused_unit_number find_unused_unit_number [private/internal] mom_document::open_doc_file open_doc_file [private/internal] mom_document::open_doc_file->mom_document::find_unused_unit_number mom_error_handler::mom_error MOM_error mom_document::open_doc_file->mom_error_handler::mom_error mom_error_infra::is_root_pe is_root_pe mom_document::open_doc_file->mom_error_infra::is_root_pe
Text view
Callers call graph
Callers of mom_document::open_doc_file calls cluster_mom_document MOM_document mom_document::doc_closeblock doc_closeBlock mom_document::open_doc_file open_doc_file [private/internal] mom_document::doc_closeblock->mom_document::open_doc_file mom_document::doc_function doc_function mom_document::doc_function->mom_document::open_doc_file mom_document::doc_module doc_module mom_document::doc_module->mom_document::open_doc_file mom_document::doc_openblock doc_openBlock mom_document::doc_openblock->mom_document::open_doc_file mom_document::doc_param_char doc_param_char [private/internal] mom_document::doc_param_char->mom_document::open_doc_file mom_document::doc_param_int doc_param_int [private/internal] mom_document::doc_param_int->mom_document::open_doc_file mom_document::doc_param_int_array doc_param_int_array [private/internal] mom_document::doc_param_int_array->mom_document::open_doc_file mom_document::doc_param_logical doc_param_logical [private/internal] mom_document::doc_param_logical->mom_document::open_doc_file mom_document::doc_param_logical_array doc_param_logical_array [private/internal] mom_document::doc_param_logical_array->mom_document::open_doc_file mom_document::doc_param_none doc_param_none [private/internal] mom_document::doc_param_none->mom_document::open_doc_file mom_document::doc_param_real doc_param_real [private/internal] mom_document::doc_param_real->mom_document::open_doc_file mom_document::doc_param_real_array doc_param_real_array [private/internal] mom_document::doc_param_real_array->mom_document::open_doc_file mom_document::doc_param_time doc_param_time [private/internal] mom_document::doc_param_time->mom_document::open_doc_file mom_document::doc_subroutine doc_subroutine mom_document::doc_subroutine->mom_document::open_doc_file
Text view
function find_unused_unit_number()

Find an unused unit number, returning >0 if found, and triggering a FATAL error if not.

Callees call graph
Callees of mom_document::find_unused_unit_number calls cluster_mom_document MOM_document cluster_mom_error_handler MOM_error_handler mom_document::find_unused_unit_number find_unused_unit_number [private/internal] mom_error_handler::mom_error MOM_error mom_document::find_unused_unit_number->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_document::find_unused_unit_number calls cluster_mom_document MOM_document mom_document::find_unused_unit_number find_unused_unit_number [private/internal] mom_document::open_doc_file open_doc_file [private/internal] mom_document::open_doc_file->mom_document::find_unused_unit_number
Text view
subroutine doc_end(doc)

This subroutine closes the files controlled by doc, and sets flags in doc to indicate that parameterization is no longer permitted.

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

Callers call graph
Callers of mom_document::doc_end calls cluster_mom_document MOM_document cluster_mom_file_parser MOM_file_parser mom_document::doc_end doc_end mom_file_parser::close_param_file close_param_file mom_file_parser::close_param_file->mom_document::doc_end
Text view
function mesgHasBeenDocumented(doc, varName, mesg)

Returns true if documentation has already been written

Parameters
  • doc

    A pointer to a structure that controls where the documentation occurs and its formatting

  • varName [in]

    The name of the parameter being documented

  • mesg [in]

    A message with parameter values, defaults, and descriptions to compare with the message that was written previously

Callees call graph
Callees of mom_document::mesghasbeendocumented calls cluster_mom_document MOM_document cluster_mom_error_handler MOM_error_handler mom_document::mesghasbeendocumented mesgHasBeenDocumented [private/internal] mom_error_handler::mom_error MOM_error mom_document::mesghasbeendocumented->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_document::mesghasbeendocumented calls cluster_mom_document MOM_document mom_document::doc_param_char doc_param_char [private/internal] mom_document::mesghasbeendocumented mesgHasBeenDocumented [private/internal] mom_document::doc_param_char->mom_document::mesghasbeendocumented mom_document::doc_param_int doc_param_int [private/internal] mom_document::doc_param_int->mom_document::mesghasbeendocumented mom_document::doc_param_int_array doc_param_int_array [private/internal] mom_document::doc_param_int_array->mom_document::mesghasbeendocumented mom_document::doc_param_logical doc_param_logical [private/internal] mom_document::doc_param_logical->mom_document::mesghasbeendocumented mom_document::doc_param_logical_array doc_param_logical_array [private/internal] mom_document::doc_param_logical_array->mom_document::mesghasbeendocumented mom_document::doc_param_none doc_param_none [private/internal] mom_document::doc_param_none->mom_document::mesghasbeendocumented mom_document::doc_param_real doc_param_real [private/internal] mom_document::doc_param_real->mom_document::mesghasbeendocumented mom_document::doc_param_real_array doc_param_real_array [private/internal] mom_document::doc_param_real_array->mom_document::mesghasbeendocumented mom_document::doc_param_time doc_param_time [private/internal] mom_document::doc_param_time->mom_document::mesghasbeendocumented
Text view
API generated with Flint · Rendered from reStructuredText