Exemplo n.º 1
0
def main():
    # works
    files = get_files_of_type('tests', '.f06')

    #moveDir = r'D:\work\move\hard_demo'
    moveDir = r'D:\work\move\move_tpl'
    #moveDir = r'D:\work\move\solid_shell_bar'
    #files2 = ['ann6611.f06']

    iSubcases = []
    debug = False
    saveCases = True
    regenerate = False
    stopOnFailure = False
    getSkipCards = False

    if getSkipCards:
        files2 = parse_skipped_cards('skippedCards.out')
    elif regenerate:
        files2 = get_files_of_type(moveDir, '.f06')
        #print files2
        #files2 = []
        files2 += files
    else:
        files2 = get_failed_files('failedCases.in')

    #files2 = [r'D:\work\move\move_tpl\ar29sadl.f06']
    #files = files+files2
    files = files2
    #files = [r'D:\work\move\move_tpl\see101hs.f06']
    #print len(files)
    #files = []

    #            HIS, R1B        EQEXIN
    #skipFiles = ['accopt3.f06','acms111m.f06','adjoint.f06','aerobeam.f06',] # tpl
    skipFiles = ['nltrot99.f06', 'rot12901.f06']  # giant
    #print files

    nStart = 0
    nStop = 10000
    try:
        os.remove('skippedCards.out')
    except:
        pass

    print("nFiles = %s" % len(files))
    run_lots_of_files(files, debug, saveCases, skipFiles,
                   stopOnFailure, nStart, nStop)
    #run_lots_of_files(files,debug,saveCases,stopOnFailure,nStart,nStop)
    sys.exit('final stop...')
Exemplo n.º 2
0
def main():
    # works
    files = get_files_of_type('tests', '.f06')

    #moveDir = r'D:\work\move\hard_demo'
    moveDir = r'D:\work\move\move_tpl'
    #moveDir = r'D:\work\move\solid_shell_bar'
    #files2 = ['ann6611.f06']

    iSubcases = []
    debug = False
    saveCases = True
    regenerate = False
    stopOnFailure = False
    getSkipCards = False

    if getSkipCards:
        files2 = parse_skipped_cards('skippedCards.out')
    elif regenerate:
        files2 = get_files_of_type(moveDir, '.f06')
        #print files2
        #files2 = []
        files2 += files
    else:
        files2 = get_failed_files('failedCases.in')

    #files2 = [r'D:\work\move\move_tpl\ar29sadl.f06']
    #files = files+files2
    files = files2
    #files = [r'D:\work\move\move_tpl\see101hs.f06']
    #print len(files)
    #files = []

    #            HIS, R1B        EQEXIN
    #skipFiles = ['accopt3.f06','acms111m.f06','adjoint.f06','aerobeam.f06',] # tpl
    skipFiles = ['nltrot99.f06', 'rot12901.f06']  # giant
    #print files

    nStart = 0
    nStop = 10000
    try:
        os.remove('skippedCards.out')
    except:
        pass

    print("nFiles = %s" % len(files))
    run_lots_of_files(files, debug, saveCases, skipFiles, stopOnFailure,
                      nStart, nStop)
    #run_lots_of_files(files,debug,saveCases,stopOnFailure,nStart,nStop)
    sys.exit('final stop...')
Exemplo n.º 3
0
def main():
    # works
    files = get_files_of_type('tests', '.f06')

    folders_file = os.path.join(pkg_path, 'bdf', 'test', 'tests', 'foldersRead.txt')
    #files2 = ['ann6611.f06']

    isubcases = []
    debug = False
    save_cases = True
    regenerate = True
    stop_on_failure = False
    get_skip_cards = False

    if get_skip_cards:
        files2 = parse_skipped_cards('skipped_cards.out')
    elif regenerate:
        files2 = get_all_files(folders_file, '.f06')
        for fname in files2:
            if 'test_f06' in fname:
                os.remove(fname)

        files3 = []
        for fname in files2:
            if 'test_f06' not in fname:
                files3.append(fname)
        #files2 = [fname if 'test_f06' not in fname for fname in files2]
        files2 = files3
        #print(files2)
        #files2 = []
        files2 += files
        files2.sort()
    else:
        files2 = get_failed_files('failed_cases.in')

    files2 = [fname for fname in files2
              if '.test_op2.f06' not in fname
              and '.test_f06.f06' not in fname]
    #files2 = [r'D:\work\move\move_tpl\ar29sadl.f06']
    #files = files+files2
    files = files2
    #files = [r'D:\work\move\move_tpl\see101hs.f06']
    #print(len(files))
    #files = []

    #            HIS, R1B        EQEXIN
    #skipFiles = ['accopt3.f06','acms111m.f06','adjoint.f06','aerobeam.f06',] # tpl
    skip_files = ['nltrot99.f06', 'rot12901.f06']  # giant
    #print(files)

    nstart = 0
    nstop = 10000
    try:
        os.remove('skipped_cards.out')
    except:
        pass

    print("nfiles = %s" % len(files))
    #print(files)
    import time
    t0 = time.time()
    run_lots_of_files(files, debug, save_cases, skip_files,
                      stop_on_failure, nstart, nstop)
    print("dt = %f" % (time.time() - t0))
    sys.exit('final stop...')
Exemplo n.º 4
0
def main():
    # works
    files = get_files_of_type('tests', '.f06')

    folders_file = os.path.join(pkg_path, 'bdf', 'test', 'tests',
                                'foldersRead.txt')
    #files2 = ['ann6611.f06']

    isubcases = []
    debug = False
    save_cases = True
    regenerate = True
    stop_on_failure = False
    get_skip_cards = False

    if get_skip_cards:
        files2 = parse_skipped_cards('skipped_cards.out')
    elif regenerate:
        files2 = get_all_files(folders_file, '.f06')
        for fname in files2:
            if 'test_f06' in fname:
                os.remove(fname)

        files3 = []
        for fname in files2:
            if 'test_f06' not in fname:
                files3.append(fname)
        #files2 = [fname if 'test_f06' not in fname for fname in files2]
        files2 = files3
        #print(files2)
        #files2 = []
        files2 += files
        files2.sort()
    else:
        files2 = get_failed_files('failed_cases.in')

    files2 = [
        fname for fname in files2
        if '.test_op2.f06' not in fname and '.test_f06.f06' not in fname
    ]
    #files2 = [r'D:\work\move\move_tpl\ar29sadl.f06']
    #files = files+files2
    files = files2
    #files = [r'D:\work\move\move_tpl\see101hs.f06']
    #print(len(files))
    #files = []

    #            HIS, R1B        EQEXIN
    #skipFiles = ['accopt3.f06','acms111m.f06','adjoint.f06','aerobeam.f06',] # tpl
    skip_files = ['nltrot99.f06', 'rot12901.f06']  # giant
    #print(files)

    nstart = 0
    nstop = 10000
    try:
        os.remove('skipped_cards.out')
    except:
        pass

    print("nfiles = %s" % len(files))
    #print(files)
    import time
    t0 = time.time()
    run_lots_of_files(files, debug, save_cases, skip_files, stop_on_failure,
                      nstart, nstop)
    print("dt = %f" % (time.time() - t0))
    sys.exit('final stop...')