Difference between revisions of "Migrate payu experiment project"
A.heerdegen (talk | contribs) |
A.heerdegen (talk | contribs) |
||
Line 12: | Line 12: | ||
'''If''' the laboratory directory is at the top level of your <tt>/scratch</tt> directory, e.g. <tt>/scratch/w40/user/access-esm:</tt> | '''If''' the laboratory directory is at the top level of your <tt>/scratch</tt> directory, e.g. <tt>/scratch/w40/user/access-esm:</tt> | ||
− | <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">Edit the <tt>config.yaml</tt> in the control directory and add | + | <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">Edit the <tt>config.yaml</tt> in the control directory and add |
− | <code>shortpath: /scratch/w40</code> | + | <code>shortpath: /scratch/w40</code> |
if there is no shortpath option, or change it to the new project code if there is already a <tt>shortpath</tt> option defined.</div> | if there is no shortpath option, or change it to the new project code if there is already a <tt>shortpath</tt> option defined.</div> | ||
'''Otherwise''', if the laboratory directory is located at some sub-directory path in your <tt>/scratch</tt> directory: | '''Otherwise''', if the laboratory directory is located at some sub-directory path in your <tt>/scratch</tt> directory: | ||
<div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">Edit the <tt>config.yaml</tt> in the control directory and add the full path to the model laboratory directory | <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">Edit the <tt>config.yaml</tt> in the control directory and add the full path to the model laboratory directory | ||
<code>laboratory: /scratch/w40/user/subdirectorypath/access-esm</code> | <code>laboratory: /scratch/w40/user/subdirectorypath/access-esm</code> | ||
− | if there is already a shortpath option remove it</div> | + | if there is already a shortpath option remove it</div> |
+ | Now remove the symbolic link to the archive directory in your control directory: | ||
+ | <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"><code>rm archive</code></div> | ||
+ | (make sure to not have a trailing <tt>/</tt> because the operating system thinks this refers to the directory it is linking to rather than the link itself) and run | ||
+ | <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"><code>payu setup --archive</code></div> | ||
+ | to test your paths are correct and create a new <tt>archive</tt>. If this is successful then | ||
+ | <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"><code>payu sweep</code></div> | ||
+ | and the model is ready to run. |
Latest revision as of 21:21, 27 October 2021
Instructions to migrate a payu experiment from one project to another on gadi.
Definitions:
- new project: the NCI project code for the project to which the experiment has been migrated (these instructions use w40 as an example, replace w40 with the appropriate project)
- control directory: location where the model is run (contains config.yaml file)
- model: the name of the model in your experiment (these instructions use access-esm as an example, replace access-esm with the appropriate model name)
- laboratory directory: location of the archive and work directories, e.g. /scratch/w40/user/access-esm, where user is your NCI username.
These instructions assume that the laboratory directory has already been copied from the /scratch directory of the original project to the scratch directory of the new project.
If the laboratory directory is at the top level of your /scratch directory, e.g. /scratch/w40/user/access-esm:
shortpath: /scratch/w40
Otherwise, if the laboratory directory is located at some sub-directory path in your /scratch directory:
laboratory: /scratch/w40/user/subdirectorypath/access-esm
Now remove the symbolic link to the archive directory in your control directory:
rm archive
(make sure to not have a trailing / because the operating system thinks this refers to the directory it is linking to rather than the link itself) and run
payu setup --archive
to test your paths are correct and create a new archive. If this is successful then
payu sweep
and the model is ready to run.