#! /bin/sh
#
# usage for NEMO doc to create an update of the Namelist directory :
# 1- delete the existing directory (You can also choose to save it somewhere)
# rm -rf Namelist
# 2- create the updated Namelist directory from the SHARED/namelist_ref :
# ./namelist_split.sh -i ../../NEMOGCM/CONFIG/SHARED/namelist_ref -o Namelist
#
# .. _namelist_split.sh:
#
# =================
# namelist_split.sh
# =================
#
# ----------------
# split a namelist
# ----------------
#
# SYNOPSIS
# ========
#
# .. code-block:: bash
#
# namelist_split.sh -i namelist -o dirout [-n]
#
# DESCRIPTION
# ===========
#
# Split a namelist file (NEMO convention syntax) given in parameter
# into files in a given output directory.
#
# .. option:: -i
# .. option:: -o