saverestore.edp
来自「FreeFem++可以生成高质量的有限元网格。可以用于流体力学」· EDP 代码 · 共 30 行
EDP
30 行
// bug save - restore P2 verbosity=3;int nn=2;mesh Th=square(nn,nn);savemesh(Th,"Th.msh");func f=x+y+0.1234567890e-5;fespace Vh(Th,P2);Vh u=f;{ofstream f("u.txt"); f.precision; cout << " f.precision() = " << f.precision() << endl; f.precision(12); cout << " f.precision() = " << f.precision() << endl;f <<u[];}{mesh Th=readmesh("Th.msh"); // il y a un changement de numerotation des traingle ou??// mesh Th("Th.msh"); // oK ..savemesh(Th,"Th1.msh");fespace VVh(Th,P2);VVh u=f,v,e;ifstream f("u.txt");f >> v[] ;e[] = u[] -v[];cout << e[].max << " " << e[].min << endl;plot(e,wait=1,value=1);assert(e[].max-e[].min < 1e-6);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?