Ejemplo n.º 1
0
def check_particles(options):
    check_file = os.path.join(options.outdir, "cavity_nsweep%s.dat" % options.nsweep)
    reference_file = os.path.join(options.golden, "cavity_nsweep%s.dat" % options.nsweep)
    if numfile_compare.check_files(check_file, reference_file, 1.0e-5):
         print "File didn't match GOLDEN/* !!!!!!!!!!!!!"
         return  -1
    print "Particle file is ok"
    return 0
Ejemplo n.º 2
0
def check_convergence(options):
    check_file     = os.path.join(options.outdir, 'convergence.dat')
    reference_file = os.path.join(options.golden, 'convergence.dat')
    if numfile_compare.check_files(check_file, reference_file, 1.0e-8):
       print "convergence history files didn't match GOLDEN/* !!!!!!!!!!!!!"
       return  -1
      # break;
    print "convergence history files are ok"
    return 0
Ejemplo n.º 3
0
def check_parmetis(options):
    for np in range(0,options.np):
       check_file = os.path.join(options.outdir, 'proc%s_debug_print.dat' % np)
       reference_file = os.path.join(options.golden, 'proc%s_debug_print.dat' % np)
       if numfile_compare.check_files(check_file, reference_file, 1.0e-5):
         print "parmetis files didn't match GOLDEN/* !!!!!!!!!!!!!"
         return  -1
    print "parmetis files are ok"
    return 0
Ejemplo n.º 4
0
def check_parmetis(options):
    for np in range(0,options.np):
       check_file = os.path.join(options.outdir, 'proc%s_debug_print.dat' % np)
       reference_file = os.path.join(options.golden, 'proc%s_debug_print.dat' % np)
       if numfile_compare.check_files(check_file, reference_file, 1.0e-5):
         print "parmetis files didn't match GOLDEN/* !!!!!!!!!!!!!"
         return  -1
    print "parmetis files are ok"
    return 0
Ejemplo n.º 5
0
def check_mesh(options):
    for np in range(0,options.np):
       check_file = os.path.join(options.outdir, 'mesh_PROC%s.dat' % np)
       reference_file = os.path.join(options.golden, 'mesh_PROC%s.dat' % np)
       if numfile_compare.check_files(check_file, reference_file, 1.0e-5):
         print "mesh files didn't match GOLDEN/* !!!!!!!!!!!!!"
         return  -1
         break;
    print "mesh files are ok"
    return 0
Ejemplo n.º 6
0
def assembler_check_syncLocalToGlobal(options):
    for np in range(0,options.np):
       check_file     = os.path.join(options.outdir, 'MESHASSEMBLER_syncLocalToGlobal.dat')
       reference_file = os.path.join(options.golden, 'MESHASSEMBLER_syncLocalToGlobal.dat')
       if numfile_compare.check_files(check_file, reference_file, 1.0e-5):
         print "syncLocalToGlobal files didn't match GOLDEN/* !!!!!!!!!!!!!"
         return  -1
         break;
    print "syncLocalToGlobal files are ok"
    return 0
Ejemplo n.º 7
0
def assembler_check_globalCellToMeshID(options):
    for np in range(0,options.np):
       check_file     = os.path.join(options.outdir, 'MESHASSEMBLER_globalCellToMeshID.dat')
       reference_file = os.path.join(options.golden, 'MESHASSEMBLER_globalCellToMeshID.dat')
       if numfile_compare.check_files(check_file, reference_file, 1.0e-5):
         print "global cell to meshid files didn't match GOLDEN/* !!!!!!!!!!!!!"
         return  -1
         break;
    print "global cell to meshid files are ok"
    return 0
Ejemplo n.º 8
0
def check_rhs(options):
    check_file = os.path.join(options.outdir, 'matrix.rhs')
    os.system("more " + check_file)
    reference_file = os.path.join(options.golden, 'matrix.rhs')
    if numfile_compare.check_files(check_file, reference_file, 1.0e-8):
        print "convergence history files didn't match GOLDEN/* !!!!!!!!!!!!!"
        return -1
    # break;
    print "rhs files are ok"
    return 0
Ejemplo n.º 9
0
def check_mesh_boundary(options):
    check_file     = os.path.join(options.outdir, 'mesh_boundary.dat')
    os.system("more "+check_file)
    reference_file = os.path.join(options.golden, 'mesh_boundary.dat')
    if numfile_compare.check_files(check_file, reference_file, 1.0e-8):
       print "convergence history files didn't match GOLDEN/* !!!!!!!!!!!!!"
       return  -1
      # break;
    print "mesh boundary files are ok"
    return 0
Ejemplo n.º 10
0
def total_charges(options):
    check_file = os.path.join(options.outdir, 'totalCharges.dat')
    os.system("more " + check_file)
    reference_file = os.path.join(options.golden, 'totalCharges.dat')
    if numfile_compare.check_files(check_file, reference_file, 1.0e-8):
        print "Total Charges files didn't match GOLDEN/* !!!!!!!!!!!!!"
        return -1
    # break;
    print "Total Charges files are ok"
    return 0
Ejemplo n.º 11
0
def check_solver(options):
    check_file = os.path.join(options.outdir, 'solver.dat')
    os.system("more " + check_file)
    reference_file = os.path.join(options.golden, 'solver.dat')
    if numfile_compare.check_files(check_file, reference_file, 1.0e-8):
        print "solver files didn't match GOLDEN/* !!!!!!!!!!!!!"
        return -1
    # break;
    print "solver files are ok"
    return 0
Ejemplo n.º 12
0
def check_compare(options):
    check_file     = os.path.join(options.outdir, 'compare.dat')
    os.system("more "+check_file)
    reference_file = os.path.join(options.golden, 'compare.dat')
    if numfile_compare.check_files(check_file, reference_file, 1.0e-8):
       print "compare files didn't match GOLDEN/* !!!!!!!!!!!!!"
       return  -1
      # break;
    print "compare  files are ok"
    return 0
Ejemplo n.º 13
0
def check_storage_site_merger(options):
    for np in range(0,options.np):
       check_file = os.path.join(options.outdir, 'proc%s_storage_site_merger.dat' % np)
       reference_file = os.path.join(options.golden, 'proc%s_storage_site_merger.dat' % np)
       if numfile_compare.check_files(check_file, reference_file, 1.0e-5):
         print "site merger files didn't match GOLDEN/* !!!!!!!!!!!!!"
         return  -1
         break;
    print "site merger files are ok"
    return 0
Ejemplo n.º 14
0
def check_nodes_mapper(options):
    for np in range(0,options.np):
       check_file = os.path.join(options.outdir, 'MESHDISMANTLER_nodesMapper_proc%s.dat' % np)
       reference_file = os.path.join(options.golden, 'MESHDISMANTLER_nodesMapper_proc%s.dat' % np)
       if numfile_compare.check_files(check_file, reference_file, 1.0e-5):
         print "nodes mapper files didn't match GOLDEN/* !!!!!!!!!!!!!"
         return  -1
         break;
    print "nodes mapper files are ok"
    return 0
Ejemplo n.º 15
0
def check_thermal_solver(options):
    for np in range(0, options.np):
        check_file = os.path.join(options.outdir, 'temp_proc%s.dat' % np)
        reference_file = os.path.join(options.golden, 'temp_proc%s.dat' % np)
        if numfile_compare.check_files(check_file, reference_file, 1.0e-5):
            print "temp files didn't match GOLDEN/* !!!!!!!!!!!!!"
            return -1
            break
    print "temp files are ok"
    return 0
Ejemplo n.º 16
0
def check_storage_site_merger(options):
    for np in range(0,options.np):
       check_file = os.path.join(options.outdir, 'proc%s_storage_site_merger.dat' % np)
       reference_file = os.path.join(options.golden, 'proc%s_storage_site_merger.dat' % np)
       if numfile_compare.check_files(check_file, reference_file, 1.0e-5):
         print "site merger files didn't match GOLDEN/* !!!!!!!!!!!!!"
         return  -1
         break;
    print "site merger files are ok"
    return 0
Ejemplo n.º 17
0
def check_thermal_solver(options):
    for np in range(0,options.np):
       check_file = os.path.join(options.outdir, 'temp_proc%s.dat' % np)
       reference_file = os.path.join(options.golden, 'temp_proc%s.dat' % np)
       if numfile_compare.check_files(check_file, reference_file, 1.0e-5):
         print "temp files didn't match GOLDEN/* !!!!!!!!!!!!!"
         return  -1
         break;
    print "temp files are ok"
    return 0
Ejemplo n.º 18
0
def check_mapping(options):
    for np in range(0,options.np):
       check_file = os.path.join(options.outdir, 'mesh_proc%s_info.dat' % np)
       reference_file = os.path.join(options.golden, 'mesh_proc%s_info.dat' % np)
       if numfile_compare.check_files(check_file, reference_file, 1.0e-5):
         print "mapping files didn't match GOLDEN/* !!!!!!!!!!!!!"
         return  -1
         break;
    print "mapping files are ok"
    return 0
Ejemplo n.º 19
0
def check_tip_displacement(options):

    check_file     = os.path.join(options.outdir, 'tipDisplacement-se.dat')
    os.system("more "+check_file)
    reference_file = os.path.join(options.golden, 'tipDisplacement-se.dat')
    if numfile_compare.check_files(check_file, reference_file, 1.0e-8):
       print "convergence history files didn't match GOLDEN/* !!!!!!!!!!!!!"
       return  -1
      # break;
    print "convergence history files are ok"
    return 0
Ejemplo n.º 20
0
def check_tip_displacement(options):

    check_file = os.path.join(options.outdir, 'tipDisplacement-se.dat')
    os.system("more " + check_file)
    reference_file = os.path.join(options.golden, 'tipDisplacement-se.dat')
    if numfile_compare.check_files(check_file, reference_file, 1.0e-8):
        print "convergence history files didn't match GOLDEN/* !!!!!!!!!!!!!"
        return -1
    # break;
    print "convergence history files are ok"
    return 0
Ejemplo n.º 21
0
def check_debug(options):
    dirList = os.listdir(options.outdir)
    goldenList = os.listdir(options.golden)
    
    for fname in dirList:
       #os.system("more "+check_file)
       check_file     = os.path.join(options.outdir, fname)
       reference_file = os.path.join(options.golden, fname)
       print "reference file : %s and check_file = %s \n "%(reference_file,check_file)
       print reference_file
       if numfile_compare.check_files(check_file, reference_file, 1.0e-8):
          print "debug files didn't match GOLDEN/* !!!!!!!!!!!!!"
          return  -1
        # break;
       print "%s files are ok \n"% (check_file)
    return 0