Changeset 23369


Ignore:
Timestamp:
10/02/18 09:59:36 (6 years ago)
Author:
bdef
Message:

BUG:partial fix, issues remain in Hydro

Location:
issm/trunk-jpl/test/NightlyRun
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/runme.py

    r23269 r23369  
    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:
     
    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
     
    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()
     
    4949               runme(id=[[101,102],['Dakota','Slr']])
    5050        """
    51 
    5251        from parallelrange import parallelrange
    5352        from IdToName import IdToName
     
    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 {{{
     
    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
  • issm/trunk-jpl/test/NightlyRun/test101.m

    r22501 r23369  
    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
Note: See TracChangeset for help on using the changeset viewer.