Which ROMS source version to use for the 4DVar tutorial

Discussion about tangent linear and adjoint models, variational data assimilation, and other related issues.

Moderators: arango, robertson

Post Reply
Message
Author
stef
Posts: 192
Joined: Tue Mar 13, 2007 6:38 pm
Location: Independent researcher
Contact:

Which ROMS source version to use for the 4DVar tutorial

#1 Unread post by stef »

I had trouble running the first exercise in the 4DVar tutorial. I checked out

Code: Select all

svn checkout --username joe_roms https://www.myroms.org/svn/src/test my_test
as described in [1]. I checked out revision 974 as described in [2]. But they seem to be incompatible, the files in the project directories do not seem to fit the revision of the source tree. I had to copy the 'varinfo.dat' and 'wc13.h' from the tree of 974 and move it to the appropriate 'my_test' project directory. In particular, the varinfo.dat in

Code: Select all

my_test/External/varinfo.dat
does not contain

Code: Select all

'obs_variance'                                     ! Input
  'observation global variance'
  'squared state variable units'                   ! [squared state units]
  'nulvar'
  'datum'
  'idOvar'
  'nulvar'
  1.0d0
which is needed in obs_initial.f90. I guess this is because I changed the cpp directive in

Code: Select all

build_bash.sh
from I4DVAR to IS4DVAR and used the source trees

Code: Select all

wc13.h
instead of the one contained in the project directory. It did not work if I used the unmodified build_bash.sh.

After making these changes the first example runs fine.

My question: which revision do I have to check out to be compatible with the tutorial project folders? I checked out

Code: Select all

git checkout 5101827580c40d58b087
where

Code: Select all

#     commit 5101827580c40d58b0877f620b1878ea41838e6e
#     Author: Hernan G. Arango <arango@marine.rutgers.edu>
#     Date:   Thu Jul 25 11:53:23 2019 -0400
#         src:ticket:820
which is the same as ticket:821 apart from version numbering. Am I doing something wrong with the checkout?

Thanks for your help!



[1] https://www.myroms.org/wiki/4DVar_Tutorial_Introduction
[2] viewtopic.php?t=5266

User avatar
arango
Site Admin
Posts: 1367
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

Re: Which ROMS source version to use for the 4DVar tutorial

#2 Unread post by arango »

Your best strategy is to start with the latest version of the code. I think that I updated the documentation Readme and PDF files in the test repository. Maybe we need to update some of the files in WikiROMS. Nowadays, we use I4DVAR and RBL4DVAR. Our preferred method is to use the dual formulation RBL4D-Var.

Good luck

stef
Posts: 192
Joined: Tue Mar 13, 2007 6:38 pm
Location: Independent researcher
Contact:

Re: Which ROMS source version to use for the 4DVar tutorial

#3 Unread post by stef »

Your best strategy is to start with the latest version of the code.
I see! Thanks!

stef
Posts: 192
Joined: Tue Mar 13, 2007 6:38 pm
Location: Independent researcher
Contact:

Re: Which ROMS source version to use for the 4DVar tutorial

#4 Unread post by stef »

I confirm that the first excercise ran without error, with the wc13.h and varinfo.dat provided in the test repository, and the latest src version

Code: Select all

commit 3b74341007c1b2312f091fed3758655d8f2e485f (HEAD -> master, origin/master, origin/HEAD)
Author: Hernan G. Arango <arango@marine.rutgers.edu>
Date:   Sun Jan 30 19:11:43 2022 -0500

    src:ticket:907


In hindsight I should have noticed that the wc13.h in the test repository had a line:

Code: Select all

svn $Id: wc13.h 1100 2022-01-06 21:19:26Z arango $
I did not think you would update this to run with the latest version. Thanks again!

Post Reply