我有一个烦人的输出文件,如下所示:
*** Warning: OpenMpAssembler::assemble_interior_facets is untested.
*** Warning: Form::coloring does not properly consider form type.
Coloring mesh.
*** Warning: Form::coloring does not properly consider form type.
Coloring mesh.
*** Warning: Form::coloring does not properly consider form type.
Solving linear system of size 108360 x 108360 (PETSc Krylov solver).
Solving linear system of size 36120 x 36120 (PETSc Krylov solver).
*** Warning: Form::coloring does not properly consider form type.
*** Warning: Form::coloring does not properly consider form type.
*** Warning: Form::coloring does not properly consider form type.
*** Warning: Form::coloring does not properly consider form type.
0/240 +0.000000e+00 -1.146247e-08 +0.000000e+00 +1.913417e-03 +0.000000e+00 +0.000000e+00
*** Warning: OpenMpAssembler::assemble_interior_facets is untested.
*** Warning: Form::coloring does not properly consider form type.
*** Warning: Form::coloring does not properly consider form type.
Solving linear system of size 108360 x 108360 (PETSc Krylov solver).
Solving linear system of size 36120 x 36120 (PETSc Krylov solver).
*** Warning: Form::coloring does not properly consider form type.
*** Warning: Form::coloring does not properly consider form type.
*** Warning: Form::coloring does not properly consider form type.
*** Warning: Form::coloring does not properly consider form type.
1/240 +5.000000e-05 -2.024630e-08 -3.666293e-08 +1.913417e-03 +1.073840e-10 +3.479053e-21
*** Warning: OpenMpAssembler::assemble_interior_facets is untested.
*** Warning: Form::coloring does not properly consider form type.
*** Warning: Form::coloring does not properly consider form type.
Solving linear system of size 108360 x 108360 (PETSc Krylov solver).
Solving linear system of size 36120 x 36120 (PETSc Krylov solver).
*** Warning: Form::coloring does not properly consider form type.
*** Warning: Form::coloring does not properly consider form type.
*** Warning: Form::coloring does not properly consider form type.
*** Warning: Form::coloring does not properly consider form type.
2/240 +1.000000e-04 -3.529024e-08 -3.825476e-08 +1.913417e-03 +1.077877e-10 +2.308941e-20
清单还在继续,我只是想提取
0/240 +0.000000e+00 -1.146247e-08 +0.000000e+00 +1.913417e-03 +0.000000e+00 +0.000000e+00
1/240 +5.000000e-05 -2.024630e-08 -3.666293e-08 +1.913417e-03 +1.073840e-10 +3.479053e-21
2/240 +1.000000e-04 -3.529024e-08 -3.825476e-08 +1.913417e-03 +1.077877e-10 +2.308941e-20
我如何在 Python 中做到这一点?基本上我想忽略以*、着色和求解开头的行