Help with making changes to Nemo in coupled model

Hi

I would like change the ocean component of the couple model (suite u-dk172 )
to run some experiments (specifically changes in SBC of nemo).

Based on some notes on the training course on making adjustments to the UM…

I’m planning on

Creating a new branch:

fcm branch-create jyg fcm:nemo.xm@5518

and then checking out a working copy

fcm checkout URL

Firstly, Is this the right approach?

Secondly, the command

fcm branch-create jyg fcm:nemo.xm@5518
prompts me for the password,

Enter “y” or “n” (or just press for “n”) y
Authentication realm: svn://puma2.archer2.ac.uk:3690 MOSRS mirrors
Password for ‘jgrist02’: *************

What I thought was the password does not work – (since TOTP I’m no longer prompted for it).

How could I find out the password or reset it ?

With many thanks,

Jeremy

Hi Jeremy,

The mirrors (fcm keywords ending .xm) are read-only. Keywords ending .x are the MOSRS repositories which you can write to. Additionally the NEMO repository is totally different because it is a copy from the original IPSL repository with a different layout. To create a branch in there you have to use the svn commands directly. Try

svn copy https://code.metoffice.gov.uk/svn/nemo/trunk@5518 https://code.metoffice.gov.uk/svn/nemo/branches/NERC/dev_5518_jyg

Cheers,
Ros.

Hi Ros,

Many thanks. Sorry have trouble using that command:

[jgrist02@puma2 branches]$ pwd

/home/n02/n02/jgrist02/um/branches:

[jgrist02@puma2 branches]$ svn copy https://code.metoffice.gov.uk/svn/nemo/trunk@5518 https://code.metoffice.gov.uk/svn/nemo/branches/NERC/dev_5518_jyg
svn: E205007: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options
svn: E205007: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no ‘editor-cmd’ run-time configuration option was found

Hi Jeremy,

You need to set one of the above variables to the editor you wish to use for the commit messages.

e.g. export SVN_EDITOR=vi

Cheesrs,
Ros.

Hi Ros,

Many thanks - following your advice, I’ve done the following:
export SVN_EDITOR=vi

svn copy https://code.metoffice.gov.uk/svn/nemo/trunk@5518 https://code.metoffice.gov.uk/svn/nemo/branches/NERC/dev_5518_jyg

svn checkout [https://code.metoffice.gov.uk/svn/nemo/branches/NERC/dev_5518_jyg nemo
(https://code.metoffice.gov.uk/svn/nemo/branches/NERC/dev_5518_jyg)

%then a test change to a comment line in

/home/n02/n02/jgrist02/um/branches/nemo2/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90

export SVN_EDITOR=vi

svn commit sbccpl.F90

In the gui for u-dk172
I changesd nemo_sources to ‘branches/NERC/dev_r5518_jyg

And run uk-dk172

Unfortunately the job failed at fcm_make_ocean – and I could not find any error message.

Would if be possible to advise on where I’ve gone wrong with the process of making changes to nemo code and then running new code?

With many thanks,

Jeremy

Jeremy

typo – dev_5518_jyg (not dev_r5518_jyg)

Grenville

Hi Grenville, thank you for this.
Jeremy

Hi -

After correcting this typo it progressed a little further but still failed at
fcm_make2_ocean
/work/n02/n02/jgrist02/cylc-run/u-dk172/log/job/19500101T0000Z/fcm_make2_ocean/01/job.err

As the code edit is only in the comments, is there something wrong with the process in the my original post doing for code changes?

Jeremy

Jeremy

Does the model work if built with https://code.metoffice.gov.uk/svn/nemo/trunk@5518 ?

Grenville

Hi Grenville,

it runs if I use:
nemo_rev= 5518
nemo_sources=branches/UKMO/dev_r5518_GO6_XIOS25_cpl_CANARI

Jeremy

Try making a copy of that branch & adding changes there.

Grenville