Changeset 12631


Ignore:
Timestamp:
07/12/12 15:54:08 (13 years ago)
Author:
jschierm
Message:

Preliminary python versions of runme, IdToName, and IdFromString.

Location:
issm/trunk-jpl/test/NightlyRun
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/IdFromString.m

    r5111 r12631  
    2222%return if no test found
    2323if isempty(ids_raw),
    24         disp(['No test matches ''' string '' ]);
     24        disp(['No test matches ''' string '''' ]);
    2525        return
    2626end
  • issm/trunk-jpl/test/NightlyRun/runme.m

    r12163 r12631  
    4949if ~ismember(benchmark,{'all','nightly','ismip','eismint','thermal','mesh','validation','tranforcing'})
    5050        disp('runme warning: benchmark not supported, defaulting to test ''nightly''')
    51         benchmark='nighlty';
     51        benchmark='nightly';
    5252end
    5353% }}}
     
    8787test_ids=intersect(test_ids,list_ids);
    8888% }}}
    89 %GET exculde {{{1
     89%GET exclude {{{1
    9090exclude_ids=getfieldvalue(options,'exclude',[]);
    9191exclude_ids=[exclude_ids];
     
    126126
    127127                        if ~strcmp(oshostname(),'larsen');
    128                                 error(['Nighlty run archives must be saved on "larsen" (hostname is "' oshostname() '")']);
     128                                error(['Nightly run archives must be saved on "larsen" (hostname is "' oshostname() '")']);
    129129                        end
    130130                        for k=1:length(field_names),
     
    135135                        disp(sprintf(['File ./../Archives/' archive_name ' saved\n']));
    136136
    137                         %ELSE: CHECK TEST
     137                %ELSE: CHECK TEST
    138138                else,
    139139
  • issm/trunk-jpl/test/NightlyRun/test102.py

    r12122 r12631  
    44from parameterize import *
    55
    6 md=model();
    7 md=triangle(md,'../Exp/Square.exp',50000);
    8 md=setmask(md,'all','');
     6md=model()
     7md=triangle(md,'../Exp/Square.exp',50000)
     8md=setmask(md,'all','')
    99md=parameterize(md,'../Par/SquareShelfConstrained.py')
     10
     11#Fields and tolerances to track changes
     12field_names     =['Vx','Vy','Vel','Pressure',\
     13        'StressTensorxx','StressTensoryy','StressTensorxy']
     14field_tolerances=[1e-13,1e-13,1e-13,1e-13,\
     15        1e-13,1e-13,1e-13]
     16field_values=[\
     17        [md.results.DiagnosticSolution.Vx],\
     18        [md.results.DiagnosticSolution.Vy],\
     19        [md.results.DiagnosticSolution.Vel],\
     20        [md.results.DiagnosticSolution.Pressure],\
     21        [md.results.DiagnosticSolution.StressTensorxx],\
     22        [md.results.DiagnosticSolution.StressTensoryy],\
     23        [md.results.DiagnosticSolution.StressTensorxy],\
     24        ]
Note: See TracChangeset for help on using the changeset viewer.