Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for hardwiring of cn_rnf (river mouths), which should have updated with ln_rnf_new in runscript*slurm #171

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chris-O-wilson
Copy link
Collaborator

@chris-O-wilson chris-O-wilson commented Jul 24, 2024

The cn_rnf variable was hardwired in namelist_cfg_template to use the JRA_RIVERS forcing.

When amending the ln_rnf_new variable in runscript*slurm to .FALSE., cn_rnf should have been automatically updating to use the runoff_1m_nomask.nc forcing, but was not.

The runscript*slurm files have been updated (for ARCHER2, but not ANEMONE), and so has the namelist_cfg_template (for v4.0.4, 4.2.1 and 4.2.2). The hardwiring has been removed and the assignment of the namelist_cfg variable from the template now follows the approach used for other variables.

@chris-O-wilson chris-O-wilson linked an issue Jul 24, 2024 that may be closed by this pull request
@chris-O-wilson chris-O-wilson requested a review from jdha July 24, 2024 15:00
@chris-O-wilson chris-O-wilson marked this pull request as draft July 26, 2024 08:49
@chris-O-wilson chris-O-wilson self-assigned this Jul 26, 2024
@@ -168,7 +168,8 @@ rn_si0=0.35,
sn_chl='chlorophyll',-1,'CHLA',.true.,.true.,'yearly','','','',
/
&namsbc_rnf
cn_dir='./INPUTS/',
!cn_dir='./INPUTS/',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should point to INPUTS as this in setup script

rn_kappa_tdiss = 0.00075398 ! x12 value 0.00006283, ! wave number Jayne and Laurence 2004 value !282.74333! increasedwith x1500^2 x2
tdiss_mindepth = 200.0 ! minimum depth to apply tdiss parameterisation
rn_kappa_tdiss = 0.00075398 ! x12 value 0.00006283, ! wave number Jayne and Laurence 2004 value !282.74333! increasedwith x1500^2 x2
tdiss_mindepth = 500.0, ! minimum depth to apply tdiss parameterisation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to double check values - which is current?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check against MY_SRC_RIV ... if the same only keep one

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check against MY_SRC_RIV

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no idea of diffs


if [ "$ln_rnf_new" = ".true." ]
then
cn_rnf=".\/JRA_RIVERS\/JRA55_coef.nc',0,'socoefr',.false.,.true.,'yearly'"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use sn_cnf to be consistent with Nemo namelist

@@ -224,6 +233,7 @@ do
sed -i "s/XXX_RMP_XXX/$ln_tide_ramp/g" namelist_cfg
sed -i "s/XXX_BTA_XXX/$ln_bt_auto/g" namelist_cfg
sed -i "s/XXX_BTC_XXX/$rn_bt_cmax/g" namelist_cfg
sed -i "s/XXX_RNM_XXX/$cn_rnf/g" namelist_cfg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sn_cnf?

@@ -169,6 +169,14 @@ else
ln_zdfevd='.true.'
fi

if [ "$ln_rnf_new" = ".true." ]
then
cn_rnf=".\/JRA_RIVERS\/JRA55_coef.nc',0,'socoefr',.false.,.true.,'yearly'"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sn_cnf

@@ -271,6 +279,7 @@ do
sed -i "s/XXX_RMP_XXX/$ln_tide_ramp/g" namelist_cfg
sed -i "s/XXX_BTA_XXX/$ln_bt_auto/g" namelist_cfg
sed -i "s/XXX_BTC_XXX/$rn_bt_cmax/g" namelist_cfg
sed -i "s/XXX_RNM_XXX/$cn_rnf/g" namelist_cfg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sn_cnf

else
sn_rnf="'runoff_1m_nomask.nc',-1,'sornficb',.true.,.true.,'yearly'"
fi

echo $SLURM_NNODES

. XXX_ENV_XXX
. . XXX_ENV_XXX
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

previous statement is correct not this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updates to improve southern ocean tides and remove polynias
3 participants