<?xml version="1.0"?>

<!--
===================================================================================================
=                                  output files definition                                        =
=                             Define your own files for sea ice                                   =
=                                put the variables you want...                                    =
===================================================================================================
-->

<file_definition type="multiple_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="1mo" min_digits="4">

  <file_group id="1ts" output_freq="1ts" output_level="10" enabled=".TRUE."/> <!-- 1 time step files -->

  <file_group id="1h" output_freq="1h" output_level="10" enabled=".TRUE."/> <!-- 1h files -->
  <file_group id="2h" output_freq="2h" output_level="10" enabled=".TRUE."/> <!-- 2h files -->
  <file_group id="3h" output_freq="3h" output_level="10" enabled=".TRUE."/> <!-- 3h files -->
  <file_group id="4h" output_freq="4h" output_level="10" enabled=".TRUE."/> <!-- 4h files -->
  <file_group id="6h" output_freq="6h" output_level="10" enabled=".TRUE."/> <!-- 6h files -->

  <file_group id="1d" output_freq="1d"  output_level="10" enabled=".TRUE.">  <!-- 1d files -->

    <file id="file21" name_suffix="_icemod" description="ice variables" enabled=".true." >

      <!-- general -->
      <field field_ref="iceconc" name="siconc" />
      <field field_ref="icethic" name="sithic" />
      <field field_ref="snwthic" name="snthic" />

      <!-- momentum -->
      <field field_ref="uice"   name="sivelu" />
      <field field_ref="vice"   name="sivelv" />
      <field field_ref="icevel" name="sivelo" />

    </file>

  </file_group>

  <file_group id="5d" output_freq="5d" output_level="10" enabled=".TRUE."/> <!-- 5d files -->

  <file_group id="1m" output_freq="1mo" output_level="10" enabled=".TRUE."> <!-- real monthly files -->

    <file id="file22" name_suffix="_icemod" description="ice variables" enabled=".true." >

      <!-- general -->
      <field field_ref="iceconc"    name="siconc" />
      <field field_ref="icethic"    name="sithic" />
      <field field_ref="icevolu"    name="sivolu" />
      <field field_ref="snwthic"    name="snthic" />
      <field field_ref="snwvolu"    name="snvolu" />
      <field field_ref="icesalt"    name="sisali" />
      <field field_ref="iceapnd"    name="siapnd" />
      <field field_ref="icevpnd"    name="sivpnd" />

      <!-- heat -->
      <field field_ref="icetemp"    name="sitemp" />
      <field field_ref="snwtemp"    name="sntemp" />
      <field field_ref="icettop"    name="sittop" />
      <field field_ref="icetbot"    name="sitbot" />

      <!-- momentum -->
      <field field_ref="uice"       name="sivelu" />
      <field field_ref="vice"       name="sivelv" />
      <field field_ref="icevel"     name="sivelo" />
      <field field_ref="utau_ai"    name="utau_ai" />
      <field field_ref="vtau_ai"    name="vtau_ai" />
      <field field_ref="utau_oi"    name="utau_oi" />
      <field field_ref="vtau_oi"    name="vtau_oi" />

      <!-- rheology -->
      <field field_ref="icediv"     name="sidive" />
      <field field_ref="iceshe"     name="sishea" />
      <field field_ref="icestr"     name="sistre" />
      <field field_ref="normstr"    name="normstr" />
      <field field_ref="sheastr"    name="sheastr" />
      <field field_ref="sig1_pnorm" name="sig1_pnorm" />
      <field field_ref="sig2_pnorm" name="sig2_pnorm" />

      <!-- trends -->
      <field field_ref="afxthd"     name="afxthd" />
      <field field_ref="afxdyn"     name="afxdyn" />
      <field field_ref="afxtot"     name="afxtot" />

    </file>

    <file id="file23" name_suffix="_icemod_flx" description="ice variables (fluxes)" enabled=".true." >

      <!-- surface heat fluxes -->
      <field field_ref="qt_oce_ai"   name="qt_oce_ai" />
      <field field_ref="qt_atm_oi"   name="qt_atm_oi" />
      <field field_ref="qtr_ice_top" name="qtr_ice_top" />
      <field field_ref="qtr_ice_bot" name="qtr_ice_bot" />
      <field field_ref="qt_ice"      name="qt_ice" />
      <field field_ref="qsr_ice"     name="qsr_ice" />
      <field field_ref="qns_ice"     name="qns_ice" />
      <field field_ref="qemp_ice"    name="qemp_ice" />
      <field field_ref="albedo"      name="albedo" />

      <!-- salt fluxes -->
      <field field_ref="sfxice"      name="sfxice" />

      <!-- mass fluxes -->
      <field field_ref="vfxice"      name="vfxice" />
      <field field_ref="vfxsnw"      name="vfxsnw" />

    </file>

    <file id="file24" name_suffix="_icemod_cat" description="ice variables (categories)" enabled=".true." >

      <!-- categories -->
      <field field_ref="iceconc_cat" name="siconcat" />
      <field field_ref="icethic_cat" name="sithicat" />
      <field field_ref="snwthic_cat" name="snthicat" />
      <field field_ref="iceage_cat"  name="siagecat" />

    </file>

  </file_group>

  <file_group id="2m" output_freq="2mo" output_level="10" enabled=".TRUE."/> <!-- real 2m files -->
  <file_group id="3m" output_freq="3mo" output_level="10" enabled=".TRUE."/> <!-- real 3m files -->
  <file_group id="4m" output_freq="4mo" output_level="10" enabled=".TRUE."/> <!-- real 4m files -->
  <file_group id="6m" output_freq="6mo" output_level="10" enabled=".TRUE."/> <!-- real 6m files -->

  <file_group id="1y"  output_freq="1y"  output_level="10" enabled=".TRUE."/> <!-- real yearly files -->
  <file_group id="2y"  output_freq="2y"  output_level="10" enabled=".TRUE."/> <!-- real 2y files -->
  <file_group id="5y"  output_freq="5y"  output_level="10" enabled=".TRUE."/> <!-- real 5y files -->
  <file_group id="10y" output_freq="10y" output_level="10" enabled=".TRUE."/> <!-- real 10y files -->

</file_definition>
