<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.18">
  <compounddef id="namespacemom__sum__output" kind="namespace" language="Fortran">
    <compoundname>mom_sum_output</compoundname>
    <innerclass refid="structmom__sum__output_1_1depth__list" prot="private">mom_sum_output::depth_list</innerclass>
    <innerclass refid="structmom__sum__output_1_1sum__output__cs" prot="public">mom_sum_output::sum_output_cs</innerclass>
      <sectiondef kind="var">
      <memberdef kind="variable" id="namespacemom__sum__output_1a5191c3198dcd24f50da9279ce7ebbc60" prot="private" static="no" mutable="no">
        <type>integer, parameter</type>
        <definition>integer, parameter mom_sum_output::num_fields</definition>
        <argsstring></argsstring>
        <name>num_fields</name>
        <initializer>= 17</initializer>
        <briefdescription>
<para>Number of diagnostic fields. </para>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" line="43" column="1" bodyfile="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" bodystart="43" bodyend="43"/>
      </memberdef>
      <memberdef kind="variable" id="namespacemom__sum__output_1a4502602fe6c41088fc5a7f658070b386" prot="private" static="no" mutable="no">
        <type><ref refid="version__variable_8h_1acda997fe1761de4c6bca0f27dc786964" kindref="member">character</ref>(*), parameter</type>
        <definition>character (*), parameter mom_sum_output::depth_chksum_attr</definition>
        <argsstring></argsstring>
        <name>depth_chksum_attr</name>
        <initializer>= &quot;bathyT_checksum&quot;</initializer>
        <briefdescription>
<para>Checksum attribute name of GbathyT over the compute domain. </para>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" line="44" column="1" bodyfile="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" bodystart="44" bodyend="44"/>
        <referencedby refid="namespacemom__sum__output_1a4f45b1c7dbff4fe064e102ccb2967daf" compoundref="MOM__sum__output_8F90" startline="1343" endline="1484">read_depth_list</referencedby>
        <referencedby refid="namespacemom__sum__output_1a955e777980a668bfc611c78de5de1895" compoundref="MOM__sum__output_8F90" startline="1248" endline="1337">write_depth_list</referencedby>
      </memberdef>
      <memberdef kind="variable" id="namespacemom__sum__output_1af8db0fa8cff32727c5f23cc328b67a7c" prot="private" static="no" mutable="no">
        <type><ref refid="version__variable_8h_1acda997fe1761de4c6bca0f27dc786964" kindref="member">character</ref>(*), parameter</type>
        <definition>character (*), parameter mom_sum_output::area_chksum_attr</definition>
        <argsstring></argsstring>
        <name>area_chksum_attr</name>
        <initializer>= &quot;mask2dT_areaT_checksum&quot;</initializer>
        <briefdescription>
<para>Checksum attribute of name of Gmask2dT * GareaT over the compute domain. </para>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" line="47" column="1" bodyfile="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" bodystart="47" bodyend="47"/>
        <referencedby refid="namespacemom__sum__output_1a4f45b1c7dbff4fe064e102ccb2967daf" compoundref="MOM__sum__output_8F90" startline="1343" endline="1484">read_depth_list</referencedby>
        <referencedby refid="namespacemom__sum__output_1a955e777980a668bfc611c78de5de1895" compoundref="MOM__sum__output_8F90" startline="1248" endline="1337">write_depth_list</referencedby>
      </memberdef>
      </sectiondef>
      <sectiondef kind="func">
      <memberdef kind="function" id="namespacemom__sum__output_1a05003e74cbb39fbdf760d23617390445" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>subroutine, public</type>
        <definition>subroutine, public mom_sum_output::mom_sum_output_init</definition>
        <argsstring>(G, US, param_file, directory, ntrnc, Input_start_time, CS)</argsstring>
        <name>mom_sum_output_init</name>
        <param>
          <type>G</type>
          <defname>G</defname>
        </param>
        <param>
          <type>US</type>
          <defname>US</defname>
        </param>
        <param>
          <type>param_file</type>
          <defname>param_file</defname>
        </param>
        <param>
          <type>directory</type>
          <defname>directory</defname>
        </param>
        <param>
          <type>ntrnc</type>
          <defname>ntrnc</defname>
        </param>
        <param>
          <type>Input_start_time</type>
          <defname>Input_start_time</defname>
        </param>
        <param>
          <type>CS</type>
          <defname>CS</defname>
        </param>
        <briefdescription>
<para>MOM_sum_output_init initializes the parameters and settings for the MOM_sum_output module. </para>
        </briefdescription>
        <detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">g</parametername>
</parameternamelist>
<parameterdescription>
<para>The ocean&apos;s grid structure. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">us</parametername>
</parameternamelist>
<parameterdescription>
<para>A dimensional unit scaling type </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">param_file</parametername>
</parameternamelist>
<parameterdescription>
<para>A structure to parse for run-time parameters. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">directory</parametername>
</parameternamelist>
<parameterdescription>
<para>The directory where the energy file goes. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="inout">ntrnc</parametername>
</parameternamelist>
<parameterdescription>
<para>The integer that stores the number of times the velocity has been truncated since the last call to write_energy. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">input_start_time</parametername>
</parameternamelist>
<parameterdescription>
<para>The start time of the simulation. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>cs</parametername>
</parameternamelist>
<parameterdescription>
<para>A pointer that is set to point to the control structure for this module. </para>
</parameterdescription>
</parameteritem>
</parameterlist>
</para>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" line="134" column="1" bodyfile="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" bodystart="136" bodyend="279"/>
        <references refid="namespacemom__sum__output_1a53d3dcd50cba41760dd8713228785a8d" compoundref="MOM__sum__output_8F90" startline="1093" endline="1117">depth_list_setup</references>
        <references refid="namespacemom__error__handler_1a460cfb79a06c29fc249952c2a3710d67" compoundref="MOM__error__handler_8F90" startline="72" endline="92">mom_error_handler::mom_error</references>
        <referencedby refid="namespacemom_1a96708b16215666edbfa5b46228f3a200" compoundref="MOM_8F90" startline="1604" endline="2769">mom::initialize_mom</referencedby>
      </memberdef>
      <memberdef kind="function" id="namespacemom__sum__output_1ae54994f461b38198510274dadbce8fb5" prot="private" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>subroutine</type>
        <definition>subroutine mom_sum_output::mom_sum_output_end</definition>
        <argsstring>(CS)</argsstring>
        <name>mom_sum_output_end</name>
        <param>
          <type>CS</type>
          <defname>CS</defname>
        </param>
        <briefdescription>
<para>MOM_sum_output_end deallocates memory used by the MOM_sum_output module. </para>
        </briefdescription>
        <detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>cs</parametername>
</parameternamelist>
<parameterdescription>
<para>The control structure returned by a previous call to MOM_sum_output_init. </para>
</parameterdescription>
</parameteritem>
</parameterlist>
</para>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" line="283" column="1" bodyfile="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" bodystart="284" bodyend="292"/>
      </memberdef>
      <memberdef kind="function" id="namespacemom__sum__output_1ad3cc692dd515100ec8cf92d740c91e72" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>subroutine, public</type>
        <definition>subroutine, public mom_sum_output::write_energy</definition>
        <argsstring>(u, v, h, tv, day, n, G, GV, US, CS, tracer_CSp, OBC, dt_forcing)</argsstring>
        <name>write_energy</name>
        <param>
          <type>u</type>
          <defname>u</defname>
        </param>
        <param>
          <type>v</type>
          <defname>v</defname>
        </param>
        <param>
          <type>h</type>
          <defname>h</defname>
        </param>
        <param>
          <type>tv</type>
          <defname>tv</defname>
        </param>
        <param>
          <type>day</type>
          <defname>day</defname>
        </param>
        <param>
          <type>n</type>
          <defname>n</defname>
        </param>
        <param>
          <type>G</type>
          <defname>G</defname>
        </param>
        <param>
          <type>GV</type>
          <defname>GV</defname>
        </param>
        <param>
          <type>US</type>
          <defname>US</defname>
        </param>
        <param>
          <type>CS</type>
          <defname>CS</defname>
        </param>
        <param>
          <type>tracer_CSp</type>
          <defname>tracer_CSp</defname>
        </param>
        <param>
          <type>OBC</type>
          <defname>OBC</defname>
        </param>
        <param>
          <type>dt_forcing</type>
          <defname>dt_forcing</defname>
        </param>
        <briefdescription>
<para>This subroutine calculates and writes the total model energy, the energy and mass of each layer, and other globally integrated physical quantities. </para>
        </briefdescription>
        <detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">g</parametername>
</parameternamelist>
<parameterdescription>
<para>The ocean&apos;s grid structure. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">gv</parametername>
</parameternamelist>
<parameterdescription>
<para>The ocean&apos;s vertical grid structure. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">us</parametername>
</parameternamelist>
<parameterdescription>
<para>A dimensional unit scaling type </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">u</parametername>
</parameternamelist>
<parameterdescription>
<para>The zonal velocity [L T-1 ~&gt; m s-1]. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">v</parametername>
</parameternamelist>
<parameterdescription>
<para>The meridional velocity [L T-1 ~&gt; m s-1]. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">h</parametername>
</parameternamelist>
<parameterdescription>
<para>Layer thicknesses [H ~&gt; m or kg m-2]. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">tv</parametername>
</parameternamelist>
<parameterdescription>
<para>A structure pointing to various thermodynamic variables. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">day</parametername>
</parameternamelist>
<parameterdescription>
<para>The current model time. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">n</parametername>
</parameternamelist>
<parameterdescription>
<para>The time step number of the current execution. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>cs</parametername>
</parameternamelist>
<parameterdescription>
<para>The control structure returned by a previous call to MOM_sum_output_init. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>tracer_csp</parametername>
</parameternamelist>
<parameterdescription>
<para>tracer control structure. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>obc</parametername>
</parameternamelist>
<parameterdescription>
<para>Open boundaries control structure. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">dt_forcing</parametername>
</parameternamelist>
<parameterdescription>
<para>The forcing time step </para>
</parameterdescription>
</parameteritem>
</parameterlist>
</para>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" line="297" column="1" bodyfile="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" bodystart="298" bodyend="947"/>
        <references refid="namespacemom__tracer__flow__control_1afd8526344e928c8c9505c921bf37447f" compoundref="MOM__tracer__flow__control_8F90" startline="545" endline="661">mom_tracer_flow_control::call_tracer_stocks</references>
        <references refid="namespacemom__error__handler_1ad5f00a53059c72fe2332d1436c80ca71" compoundref="MOM__error__handler_8F90" startline="44" endline="48">mom_error_handler::is_root_pe</references>
        <references refid="namespacemom__error__handler_1a460cfb79a06c29fc249952c2a3710d67" compoundref="MOM__error__handler_8F90" startline="72" endline="92">mom_error_handler::mom_error</references>
        <references refid="namespacemom__open__boundary_1a876256dbb0556d7e04cdf091f1744b65" compoundref="MOM__open__boundary_8F90" startline="75" endline="75">mom_open_boundary::obc_direction_e</references>
        <references refid="namespacemom__open__boundary_1a6ace8760d7fa465a59d8cbc3340a5b5e" compoundref="MOM__open__boundary_8F90" startline="73" endline="73">mom_open_boundary::obc_direction_n</references>
        <references refid="namespacemom__open__boundary_1a29aee121a765fc751bd1c21adf80af10" compoundref="MOM__open__boundary_8F90" startline="74" endline="74">mom_open_boundary::obc_direction_s</references>
        <references refid="namespacemom__open__boundary_1a015e27a65957919ea3cd67767b8f26f7" compoundref="MOM__open__boundary_8F90" startline="76" endline="76">mom_open_boundary::obc_direction_w</references>
      </memberdef>
      <memberdef kind="function" id="namespacemom__sum__output_1a773833f7ac86b8b65b0e6e8f91f05ec4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>subroutine, public</type>
        <definition>subroutine, public mom_sum_output::accumulate_net_input</definition>
        <argsstring>(fluxes, sfc_state, tv, dt, G, US, CS)</argsstring>
        <name>accumulate_net_input</name>
        <param>
          <type>fluxes</type>
          <defname>fluxes</defname>
        </param>
        <param>
          <type>sfc_state</type>
          <defname>sfc_state</defname>
        </param>
        <param>
          <type>tv</type>
          <defname>tv</defname>
        </param>
        <param>
          <type>dt</type>
          <defname>dt</defname>
        </param>
        <param>
          <type>G</type>
          <defname>G</defname>
        </param>
        <param>
          <type>US</type>
          <defname>US</defname>
        </param>
        <param>
          <type>CS</type>
          <defname>CS</defname>
        </param>
        <briefdescription>
<para>This subroutine accumates the net input of volume, salt and heat, through the ocean surface for use in diagnosing conservation. </para>
        </briefdescription>
        <detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">fluxes</parametername>
</parameternamelist>
<parameterdescription>
<para>A structure containing pointers to any possible forcing fields. Unused fields are unallocated. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">sfc_state</parametername>
</parameternamelist>
<parameterdescription>
<para>A structure containing fields that describe the surface state of the ocean. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">tv</parametername>
</parameternamelist>
<parameterdescription>
<para>A structure pointing to various thermodynamic variables. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">dt</parametername>
</parameternamelist>
<parameterdescription>
<para>The amount of time over which to average [T ~&gt; s]. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">g</parametername>
</parameternamelist>
<parameterdescription>
<para>The ocean&apos;s grid structure. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">us</parametername>
</parameternamelist>
<parameterdescription>
<para>A dimensional unit scaling type </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>cs</parametername>
</parameternamelist>
<parameterdescription>
<para>The control structure returned by a previous call to MOM_sum_output_init. </para>
</parameterdescription>
</parameteritem>
</parameterlist>
</para>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" line="952" column="1" bodyfile="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" bodystart="953" bodyend="1085"/>
        <references refid="namespacemom__error__handler_1a460cfb79a06c29fc249952c2a3710d67" compoundref="MOM__error__handler_8F90" startline="72" endline="92">mom_error_handler::mom_error</references>
      </memberdef>
      <memberdef kind="function" id="namespacemom__sum__output_1a53d3dcd50cba41760dd8713228785a8d" prot="private" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>subroutine</type>
        <definition>subroutine mom_sum_output::depth_list_setup</definition>
        <argsstring>(G, US, CS)</argsstring>
        <name>depth_list_setup</name>
        <param>
          <type>G</type>
          <defname>G</defname>
        </param>
        <param>
          <type>US</type>
          <defname>US</defname>
        </param>
        <param>
          <type>CS</type>
          <defname>CS</defname>
        </param>
        <briefdescription>
<para>This subroutine sets up an ordered list of depths, along with the cross sectional areas at each depth and the volume of fluid deeper than each depth. This might be read from a previously created file or it might be created anew. (For now only new creation occurs. </para>
        </briefdescription>
        <detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">g</parametername>
</parameternamelist>
<parameterdescription>
<para>The ocean&apos;s grid structure </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">us</parametername>
</parameternamelist>
<parameterdescription>
<para>A dimensional unit scaling type </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>cs</parametername>
</parameternamelist>
<parameterdescription>
<para>The control structure returned by a previous call to MOM_sum_output_init. </para>
</parameterdescription>
</parameteritem>
</parameterlist>
</para>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" line="1092" column="1" bodyfile="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" bodystart="1093" bodyend="1117"/>
        <references refid="namespacemom__sum__output_1a1db5001777c2171a7f3f16122b4bacd1" compoundref="MOM__sum__output_8F90" startline="1123" endline="1243">create_depth_list</references>
        <references refid="namespacemom__error__handler_1ad5f00a53059c72fe2332d1436c80ca71" compoundref="MOM__error__handler_8F90" startline="44" endline="48">mom_error_handler::is_root_pe</references>
        <references refid="namespacemom__error__handler_1a460cfb79a06c29fc249952c2a3710d67" compoundref="MOM__error__handler_8F90" startline="72" endline="92">mom_error_handler::mom_error</references>
        <references refid="namespacemom__sum__output_1a4f45b1c7dbff4fe064e102ccb2967daf" compoundref="MOM__sum__output_8F90" startline="1343" endline="1484">read_depth_list</references>
        <references refid="namespacemom__sum__output_1a955e777980a668bfc611c78de5de1895" compoundref="MOM__sum__output_8F90" startline="1248" endline="1337">write_depth_list</references>
        <referencedby refid="namespacemom__sum__output_1a05003e74cbb39fbdf760d23617390445" compoundref="MOM__sum__output_8F90" startline="136" endline="279">mom_sum_output_init</referencedby>
      </memberdef>
      <memberdef kind="function" id="namespacemom__sum__output_1a1db5001777c2171a7f3f16122b4bacd1" prot="private" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>subroutine</type>
        <definition>subroutine mom_sum_output::create_depth_list</definition>
        <argsstring>(G, CS)</argsstring>
        <name>create_depth_list</name>
        <param>
          <type>G</type>
          <defname>G</defname>
        </param>
        <param>
          <type>CS</type>
          <defname>CS</defname>
        </param>
        <briefdescription>
<para>create_depth_list makes an ordered list of depths, along with the cross sectional areas at each depth and the volume of fluid deeper than each depth. </para>
        </briefdescription>
        <detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">g</parametername>
</parameternamelist>
<parameterdescription>
<para>The ocean&apos;s grid structure. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>cs</parametername>
</parameternamelist>
<parameterdescription>
<para>The control structure set up in MOM_sum_output_init, in which the ordered depth list is stored. </para>
</parameterdescription>
</parameteritem>
</parameterlist>
</para>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" line="1122" column="1" bodyfile="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" bodystart="1123" bodyend="1243"/>
        <referencedby refid="namespacemom__sum__output_1a53d3dcd50cba41760dd8713228785a8d" compoundref="MOM__sum__output_8F90" startline="1093" endline="1117">depth_list_setup</referencedby>
        <referencedby refid="namespacemom__sum__output_1a4f45b1c7dbff4fe064e102ccb2967daf" compoundref="MOM__sum__output_8F90" startline="1343" endline="1484">read_depth_list</referencedby>
      </memberdef>
      <memberdef kind="function" id="namespacemom__sum__output_1a955e777980a668bfc611c78de5de1895" prot="private" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>subroutine</type>
        <definition>subroutine mom_sum_output::write_depth_list</definition>
        <argsstring>(G, US, CS, filename, list_size)</argsstring>
        <name>write_depth_list</name>
        <param>
          <type>G</type>
          <defname>G</defname>
        </param>
        <param>
          <type>US</type>
          <defname>US</defname>
        </param>
        <param>
          <type>CS</type>
          <defname>CS</defname>
        </param>
        <param>
          <type>filename</type>
          <defname>filename</defname>
        </param>
        <param>
          <type>list_size</type>
          <defname>list_size</defname>
        </param>
        <briefdescription>
<para>This subroutine writes out the depth list to the specified file. </para>
        </briefdescription>
        <detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">g</parametername>
</parameternamelist>
<parameterdescription>
<para>The ocean&apos;s grid structure. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">us</parametername>
</parameternamelist>
<parameterdescription>
<para>A dimensional unit scaling type </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>cs</parametername>
</parameternamelist>
<parameterdescription>
<para>The control structure returned by a previous call to MOM_sum_output_init. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">filename</parametername>
</parameternamelist>
<parameterdescription>
<para>The path to the depth list file to write. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">list_size</parametername>
</parameternamelist>
<parameterdescription>
<para>The size of the depth list. </para>
</parameterdescription>
</parameteritem>
</parameterlist>
</para>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" line="1247" column="1" bodyfile="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" bodystart="1248" bodyend="1337"/>
        <references refid="namespacemom__sum__output_1af8db0fa8cff32727c5f23cc328b67a7c" compoundref="MOM__sum__output_8F90" startline="47" endline="47">area_chksum_attr</references>
        <references refid="namespacemom__sum__output_1a4502602fe6c41088fc5a7f658070b386" compoundref="MOM__sum__output_8F90" startline="44" endline="44">depth_chksum_attr</references>
        <references refid="namespacemom__sum__output_1a928dd1160bb6c0033a417c618b9d01ef" compoundref="MOM__sum__output_8F90" startline="1499" endline="1520">get_depth_list_checksums</references>
        <references refid="namespacemom__error__handler_1ad5f00a53059c72fe2332d1436c80ca71" compoundref="MOM__error__handler_8F90" startline="44" endline="48">mom_error_handler::is_root_pe</references>
        <references refid="namespacemom__error__handler_1a460cfb79a06c29fc249952c2a3710d67" compoundref="MOM__error__handler_8F90" startline="72" endline="92">mom_error_handler::mom_error</references>
        <referencedby refid="namespacemom__sum__output_1a53d3dcd50cba41760dd8713228785a8d" compoundref="MOM__sum__output_8F90" startline="1093" endline="1117">depth_list_setup</referencedby>
        <referencedby refid="namespacemom__sum__output_1a4f45b1c7dbff4fe064e102ccb2967daf" compoundref="MOM__sum__output_8F90" startline="1343" endline="1484">read_depth_list</referencedby>
      </memberdef>
      <memberdef kind="function" id="namespacemom__sum__output_1a4f45b1c7dbff4fe064e102ccb2967daf" prot="private" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>subroutine</type>
        <definition>subroutine mom_sum_output::read_depth_list</definition>
        <argsstring>(G, US, CS, filename)</argsstring>
        <name>read_depth_list</name>
        <param>
          <type>G</type>
          <defname>G</defname>
        </param>
        <param>
          <type>US</type>
          <defname>US</defname>
        </param>
        <param>
          <type>CS</type>
          <defname>CS</defname>
        </param>
        <param>
          <type>filename</type>
          <defname>filename</defname>
        </param>
        <briefdescription>
<para>This subroutine reads in the depth list to the specified file and allocates and sets up CSDL and CSlist_size . </para>
        </briefdescription>
        <detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">g</parametername>
</parameternamelist>
<parameterdescription>
<para>The ocean&apos;s grid structure </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">us</parametername>
</parameternamelist>
<parameterdescription>
<para>A dimensional unit scaling type </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>cs</parametername>
</parameternamelist>
<parameterdescription>
<para>The control structure returned by a previous call to MOM_sum_output_init. </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">filename</parametername>
</parameternamelist>
<parameterdescription>
<para>The path to the depth list file to read. </para>
</parameterdescription>
</parameteritem>
</parameterlist>
</para>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" line="1342" column="1" bodyfile="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" bodystart="1343" bodyend="1484"/>
        <references refid="namespacemom__sum__output_1af8db0fa8cff32727c5f23cc328b67a7c" compoundref="MOM__sum__output_8F90" startline="47" endline="47">area_chksum_attr</references>
        <references refid="namespacemom__sum__output_1a1db5001777c2171a7f3f16122b4bacd1" compoundref="MOM__sum__output_8F90" startline="1123" endline="1243">create_depth_list</references>
        <references refid="namespacemom__sum__output_1a4502602fe6c41088fc5a7f658070b386" compoundref="MOM__sum__output_8F90" startline="44" endline="44">depth_chksum_attr</references>
        <references refid="namespacemom__sum__output_1a928dd1160bb6c0033a417c618b9d01ef" compoundref="MOM__sum__output_8F90" startline="1499" endline="1520">get_depth_list_checksums</references>
        <references refid="namespacemom__error__handler_1a460cfb79a06c29fc249952c2a3710d67" compoundref="MOM__error__handler_8F90" startline="72" endline="92">mom_error_handler::mom_error</references>
        <references refid="namespacemom__sum__output_1a955e777980a668bfc611c78de5de1895" compoundref="MOM__sum__output_8F90" startline="1248" endline="1337">write_depth_list</references>
        <referencedby refid="namespacemom__sum__output_1a53d3dcd50cba41760dd8713228785a8d" compoundref="MOM__sum__output_8F90" startline="1093" endline="1117">depth_list_setup</referencedby>
      </memberdef>
      <memberdef kind="function" id="namespacemom__sum__output_1a928dd1160bb6c0033a417c618b9d01ef" prot="private" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>subroutine</type>
        <definition>subroutine mom_sum_output::get_depth_list_checksums</definition>
        <argsstring>(G, depth_chksum, area_chksum)</argsstring>
        <name>get_depth_list_checksums</name>
        <param>
          <type>G</type>
          <defname>G</defname>
        </param>
        <param>
          <type>depth_chksum</type>
          <defname>depth_chksum</defname>
        </param>
        <param>
          <type>area_chksum</type>
          <defname>area_chksum</defname>
        </param>
        <briefdescription>
<para>Return the checksums required to verify DEPTH_LIST_FILE contents. </para>
        </briefdescription>
        <detaileddescription>
<para>This function computes checksums for the bathymetry (GbathyT) and masked area (mask2dT * areaT) fields of the model grid G, which are used to compute the depth list. A difference in checksum indicates that a different method was used to compute the grid data, and that any results using the depth list, such as APE, will not be reproducible.</para>
<para>Checksums are saved as hexadecimal strings, in order to avoid potential datatype issues with netCDF attributes. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">g</parametername>
</parameternamelist>
<parameterdescription>
<para>Ocean grid structure </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="out">depth_chksum</parametername>
</parameternamelist>
<parameterdescription>
<para>Depth checksum hexstring </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="out">area_chksum</parametername>
</parameternamelist>
<parameterdescription>
<para>Area checksum hexstring </para>
</parameterdescription>
</parameteritem>
</parameterlist>
</para>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" line="1498" column="1" bodyfile="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" bodystart="1499" bodyend="1520"/>
        <referencedby refid="namespacemom__sum__output_1a4f45b1c7dbff4fe064e102ccb2967daf" compoundref="MOM__sum__output_8F90" startline="1343" endline="1484">read_depth_list</referencedby>
        <referencedby refid="namespacemom__sum__output_1a955e777980a668bfc611c78de5de1895" compoundref="MOM__sum__output_8F90" startline="1248" endline="1337">write_depth_list</referencedby>
      </memberdef>
      </sectiondef>
    <briefdescription>
<para>Reports integrated quantities for monitoring the model state. </para>
    </briefdescription>
    <detaileddescription>
<para>By Robert Hallberg, April 1994 - June 2002</para>
<para>This file contains the subroutine (write_energy) that writes horizontally integrated quantities, such as energies and layer volumes, and other summary information to an output file. Some of these quantities (APE or resting interface height) are defined relative to the global histogram of topography. The subroutine that compiles that histogram (depth_list_setup) is also included in this file.</para>
<para>In addition, if the number of velocity truncations since the previous call to write_energy exceeds maxtrunc or the total energy exceeds a very large threshold, a fatal termination is triggered. </para>
    </detaileddescription>
    <location file="/home/cermak/src/MOM6.devrob/src/diagnostics/MOM_sum_output.F90" line="2" column="1"/>
  </compounddef>
</doxygen>
