本文整理汇总了Python中numfile_compare.check_files函数的典型用法代码示例。如果您正苦于以下问题:Python check_files函数的具体用法?Python check_files怎么用?Python check_files使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了check_files函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: check_particles
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
示例2: check_parmetis
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
示例3: check_convergence
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
示例4: check_storage_site_merger
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
示例5: check_thermal_solver
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
示例6: check_mapping
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
示例7: check_nodes_mapper
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
示例8: assembler_check_syncLocalToGlobal
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
示例9: assembler_check_globalCellToMeshID
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
示例10: check_mesh_boundary
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
示例11: check_compare
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
示例12: check_tip_displacement
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
示例13: check_debug
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