New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 4136 – NEMO

Changeset 4136


Ignore:
Timestamp:
2013-10-25T15:32:54+02:00 (11 years ago)
Author:
andrewryan
Message:

added a dry run flag to quick script to easily test namelist editing

Location:
branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/TOOLS/OBSTOOLS/OOO
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/TOOLS/OBSTOOLS/OOO/doc/source/intro.rst

    r4122 r4136  
    3030                           Choice of namobs types. 
    3131     --class4              Flag to choose class 4 file outputs 
     32     --dry-run             Flag to test namelist building without submitting. 
     33 
    3234 
    3335The above command line utility ``ooo`` can be used to edit **NEMO** namelists.  
  • branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/TOOLS/OBSTOOLS/OOO/ooo/ooo.py

    r4133 r4136  
    2323    parser.add_argument("--class4", dest="ln_cl4", action="store_true", 
    2424                        help="Flag to choose class 4 file outputs") 
     25    parser.add_argument("--dry-run", action="store_true", 
     26                        help="Flag to test namelist building without submitting.") 
    2527    parser.add_argument("namelist", metavar="NAMELIST",  
    2628                        help="NEMO namelist to edit.") 
     
    3436    args = parse_args() 
    3537    date = args.date 
     38    print "Processing", args.namelist, " for", args.date 
    3639     
    3740    # Move to working directory 
     
    9093 
    9194    # Run job 
    92     run.submit() 
     95    if not args.dry_run: 
     96        run.submit() 
    9397     
    9498 
Note: See TracChangeset for help on using the changeset viewer.