⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 checkerror.py

📁 利用C
💻 PY
字号:
#!/usr/bin/python## Copyright (C) 2005-2006 Anders Logg.# Licensed under the GNU LGPL Version 2.1.## Test script for checking the error of the# multi-adaptive solution. Good for testing.from os import systemfrom benchutil import *system("./dolfin-ode-reaction mcg fixed-point 1e-6 1000 5.0 parameters-bench.xml")e = check_error("solution.data", "reference_1000.data")print ""print "Error: %g" % eprint "Error should be 1.7708e-05 and take about 13.75 seconds to compute."

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -