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 for branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/TOOLS/OBSTOOLS/OOO/ooo/ooo.py – NEMO

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.