source: issm/oecreview/Archive/23185-23389/ISSM-23368-23369.diff@ 23390

Last change on this file since 23390 was 23390, checked in by Mathieu Morlighem, 6 years ago

CHG: added Archive/23185-23389

File size: 2.9 KB
  • ../trunk-jpl/test/NightlyRun/runme.py

     
    1010def runme(id=None,exclude=None,benchmark='nightly',procedure='check',output='none',rank=1,numprocs=1):
    1111        """
    1212        RUNME - test deck for ISSM nightly runs
    13  
     13
    1414            In a test deck directory (tests/Vertification/NightlyRun for example)
    1515            The following command will launch all the existing tests:
    1616            >> runme()
     
    1717            To run the tests 101 and 102:
    1818            >> runme(id=[101,102])
    1919            etc...
    20  
     20
    2121            Available options:
    2222               'id'            followed by the list of ids or (parts of) test names requested
    2323                                Note: runs all tests by default
     
    3636
    3737               'procedure'     'check' : run the test (default)
    3838                               'update': update the archive
    39  
     39
    4040            Usage:
    4141               runme(varargin)
    42  
     42
    4343            Examples:
    4444               runme()
    4545               runme(101)
     
    4848               runme(exclude='Dakota',benchmark='all')
    4949               runme(id=[[101,102],['Dakota','Slr']])
    5050        """
    51 
    5251        from parallelrange import parallelrange
    5352        from IdToName import IdToName
    5453        from arch import archread
     
    8483
    8584        i1,i2=parallelrange(rank,numprocs,len(list_ids))    #Get tests for this cpu only
    8685        list_ids=list_ids[i1:i2+1]
    87        
    88         if np.size(id) > 0:
     86
     87        if np.size(id) > 0 and not id==None:
    8988                test_ids = set(GetIds(id)).intersection(set(list_ids))
    9089        else:
    9190                # if no tests are specifically provided, do them all
    9291                test_ids = set(list_ids)
    93                
     92
    9493        # }}}
    9594        #GET exclude {{{
    9695        exclude_ids = GetIds(exclude)
     
    182181                                                        field = field.T
    183182                                                        if np.shape(field) != np.shape(archive):
    184183                                                                raise RuntimeError("Field '"+archive_name+"' from test is malformed; shape is "+str(np.shape(field.T))+", should be "+str(np.shape(archive))+" (or "+str(np.shape(archive.T))+").")
    185                                                
     184
    186185                                                error_diff=np.amax(np.abs(archive-field),axis=0)/(np.amax(np.abs(archive),axis=0)+float_info.epsilon)
    187186
    188187                                                if not np.isscalar(error_diff): error_diff=error_diff[0]
  • ../trunk-jpl/test/NightlyRun/test101.m

     
    33md=setmask(md,'all','');
    44md=parameterize(md,'../Par/SquareShelfConstrained.par');
    55md=setflowequation(md,'SSA','all');
    6 md.cluster=generic('name',oshostname(),'np',2);
     6md.cluster=stallo('numnodes',1,'cpuspernode',16,'time',60,'queue','devel')
     7%md.cluster=generic('name',oshostname(),'np',2);
    78
    89%output
    910md.stressbalance.requested_outputs={'default','DeviatoricStressxx','DeviatoricStressyy','DeviatoricStressxy','MassFlux1','MassFlux2','MassFlux3','MassFlux4','MassFlux5','MassFlux6'};
Note: See TracBrowser for help on using the repository browser.