• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python numfile_compare.check_files函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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
开发者ID:btanasoi,项目名称:fvm,代码行数:8,代码来源:test.py


示例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
开发者ID:btanasoi,项目名称:fvm,代码行数:9,代码来源:ptest.py


示例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
开发者ID:btanasoi,项目名称:fvm,代码行数:9,代码来源:ptest.py


示例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
开发者ID:btanasoi,项目名称:fvm,代码行数:10,代码来源:ptest.py


示例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
开发者ID:btanasoi,项目名称:fvm,代码行数:10,代码来源:ptest.py


示例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
开发者ID:btanasoi,项目名称:fvm,代码行数:10,代码来源:ptest.py


示例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
开发者ID:btanasoi,项目名称:fvm,代码行数:10,代码来源:ptest.py


示例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
开发者ID:btanasoi,项目名称:fvm,代码行数:10,代码来源:ptest.py


示例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
开发者ID:btanasoi,项目名称:fvm,代码行数:10,代码来源:ptest.py


示例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
开发者ID:btanasoi,项目名称:fvm,代码行数:10,代码来源:ptest.py


示例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
开发者ID:btanasoi,项目名称:fvm,代码行数:10,代码来源:ptest.py


示例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
开发者ID:btanasoi,项目名称:fvm,代码行数:11,代码来源:ptest.py


示例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
开发者ID:btanasoi,项目名称:fvm,代码行数:16,代码来源:ptest.py



注:本文中的numfile_compare.check_files函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python numpy.__getattribute__函数代码示例发布时间:2022-05-27
下一篇:
Python numexpr.set_num_threads函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap