From 37917368f26920cb8a48d2a6cf6e01927d378c61 Mon Sep 17 00:00:00 2001
From: Guillaume Samson <guillaume.samson@mercator-ocean.fr>
Date: Fri, 18 Oct 2024 14:21:58 +0000
Subject: [PATCH] Resolve "update time-dependant reference pressure option in
 sbc_apr"

---
 latex/NEMO/subfiles/chap_SBC.tex | 9 ++++++---
 namelists                        | 2 +-
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/latex/NEMO/subfiles/chap_SBC.tex b/latex/NEMO/subfiles/chap_SBC.tex
index 5373bd8..e73c948 100644
--- a/latex/NEMO/subfiles/chap_SBC.tex
+++ b/latex/NEMO/subfiles/chap_SBC.tex
@@ -1066,9 +1066,12 @@ an equivalent inverse barometer sea surface height, $\eta_{ib}$, using:
   \eta_{ib} = -  \frac{1}{g\,\rho_o}  \left( P_{atm} - P_o \right)
 \]
 where $P_{atm}$ is the atmospheric pressure and $P_o$ a reference atmospheric pressure.
-A value of $101,000~N/m^2$ is used unless \np{ln_ref_apr}{ln\_ref\_apr} is set to true.
-In this case, $P_o$ is set to the value of $P_{atm}$ averaged over the ocean domain,
-\ie\ the mean value of $\eta_{ib}$ is kept to zero at all time steps.
+3 different options are available to define this reference atmospheric pressure using \np{nn_ref_apr}{nn\_ref\_apr}:
+\begin{description}
+   \item $\bullet$ 0 sets $P_o$ to a constant value of $101,000~N/m^2$
+   \item $\bullet$ 1 sets $P_o$ to the value of $P_{atm}$ averaged over the ocean domain (the mean value of $\eta_{ib}$ is kept to zero at all time steps)
+   \item $\bullet$ 2 reads a time-dependant $P_o$ value from a 1D file defined via \np{sn_apref}{sn\_apref} structure (usefull for regional configurations)
+\end{description}
 
 The gradient of $\eta_{ib}$ is added to the RHS of the ocean momentum equation (see \mdl{dynspg} for the ocean).
 For sea-ice, the sea surface height, $\eta_m$, which is provided to the sea ice model is set to $\eta - \eta_{ib}$
diff --git a/namelists b/namelists
index 0e8152c..43a9e90 160000
--- a/namelists
+++ b/namelists
@@ -1 +1 @@
-Subproject commit 0e8152c2f6ad129e5bf1bd1a2c85173a2916bb78
+Subproject commit 43a9e90e73133b4d705f0576a474c5c0b04c2204
-- 
GitLab