Hello
Kindly , I'm trying to install SfePy on a redhat linux workstation.
I was running the python tests and test_linear_solvers.py failed.
the command: python run_tests.py --debug tests/test_linear_solvers.py gave
the below.
Please note that I got the message "mpi4py (optional) is available in
version 1.3, but >= 1.3.1 is needed; you may get run-time errors" during
compilation.
Cheers,
gmh@calx039$ python run_tests.py --debug tests/test_linear_solvers.py
<<< directory: tests, test files: 1
<<< tests/test_linear_solvers.py
sfepy: left over: ['verbose', '__builtins__', '__doc__',
'__name__',
'TestCommon', 'data_dir', '_filename', '__package__',
'output_name',
'__file__']
sfepy: reading mesh [line2, tri3, quad4, tetra4, hexa8]
(/home/gmh/Desktop/sfepy/meshes/3d/special/cube_cylinder.mesh)...
sfepy: ...done in 0.14 s
sfepy: creating regions...
sfepy: Gamma_Right
sfepy: Omega
sfepy: Gamma_Left
sfepy: ...done in 0.18 s
sfepy: equation "Temperature":
sfepy: dw_laplace.i.Omega(coef.val, s, t) = 0
sfepy: using solvers:
ts: no ts
nls: newton
ls: d01
sfepy: updating variables...
sfepy: ...done
sfepy: setting up dof connectivities...
sfepy: ...done in 0.00 s
sfepy: matrix shape: (9511, 9511)
sfepy: assembling matrix graph...
sfepy: ...done in 0.04 s
sfepy: matrix structural nonzeros: 132239 (1.46e-03% fill)
>> test instance prepared (1 test(s))
... d00 ls.scipy_direct umfpack
... matrix size: (9511, 9511)
... nnz: 132239
sfepy: updating materials...
sfepy: coef
sfepy: ...done in 0.01 s
sfepy: nls: iter: 0, residual: 3.587850e+00 (rel: 1.000000e+00)
sfepy: rezidual: 0.01 [s]
sfepy: solve: 1.49 [s]
sfepy: matrix: 0.02 [s]
sfepy: nls: iter: 1, residual: 4.898229e-15 (rel: 1.365227e-15)
... rezidual: 0.01 [s]
... solve: 1.49 [s]
... matrix: 0.02 [s]
... condition: 0, err0: 3.588e+00, err: 4.898e-15
... d01 ls.scipy_direct superlu
... matrix size: (9511, 9511)
... nnz: 132239
sfepy: updating materials...
sfepy: coef
sfepy: ...done in 0.00 s
sfepy: nls: iter: 0, residual: 3.587850e+00 (rel: 1.000000e+00)
sfepy: rezidual: 0.01 [s]
sfepy: solve: 1.34 [s]
sfepy: matrix: 0.02 [s]
sfepy: nls: iter: 1, residual: 1.554473e-14 (rel: 4.332602e-15)
... rezidual: 0.01 [s]
... solve: 1.34 [s]
... matrix: 0.02 [s]
... condition: 0, err0: 3.588e+00, err: 1.554e-14
... i00 ls.pyamg ruge_stuben_solver
... matrix size: (9511, 9511)
... nnz: 132239
... solver failed:
... cannot import pyamg!
... i01 ls.pyamg smoothed_aggregation_solver
... matrix size: (9511, 9511)
... nnz: 132239
... solver failed:
... cannot import pyamg!
... i10 ls.petsc cg icc
... matrix size: (9511, 9511)
... nnz: 132239
sfepy: updating materials...
sfepy: coef
sfepy: ...done in 0.00 s
sfepy: nls: iter: 0, residual: 3.587850e+00 (rel: 1.000000e+00)
sfepy: rezidual: 0.01 [s]
sfepy: solve: 0.09 [s]
sfepy: matrix: 0.02 [s]
sfepy: nls: iter: 1, residual: 2.427756e-12 (rel: 6.766603e-13)
... rezidual: 0.00 [s]
... solve: 0.09 [s]
... matrix: 0.02 [s]
... condition: 0, err0: 3.588e+00, err: 2.428e-12
... i20 ls.scipy_iterative cg
... matrix size: (9511, 9511)
... nnz: 132239
sfepy: updating materials...
sfepy: coef
sfepy: ...done in 0.00 s
sfepy: nls: iter: 0, residual: 3.587850e+00 (rel: 1.000000e+00)
sfepy: cg convergence: 0 (successful exit)
sfepy: rezidual: 0.02 [s]
sfepy: solve: 0.05 [s]
sfepy: matrix: 0.02 [s]
sfepy: nls: iter: 1, residual: 3.287606e-12 (rel: 9.163164e-13)
... rezidual: 0.00 [s]
... solve: 0.05 [s]
... matrix: 0.02 [s]
... condition: 0, err0: 3.588e+00, err: 3.288e-12
... i21 ls.scipy_iterative bicgstab
... matrix size: (9511, 9511)
... nnz: 132239
sfepy: updating materials...
sfepy: coef
sfepy: ...done in 0.00 s
sfepy: nls: iter: 0, residual: 3.587850e+00 (rel: 1.000000e+00)
sfepy: bicgstab convergence: 0 (successful exit)
sfepy: rezidual: 0.01 [s]
sfepy: solve: 0.07 [s]
sfepy: matrix: 0.02 [s]
sfepy: nls: iter: 1, residual: 2.835370e-12 (rel: 7.902699e-13)
... rezidual: 0.01 [s]
... solve: 0.07 [s]
... matrix: 0.02 [s]
... condition: 0, err0: 3.588e+00, err: 2.835e-12
... i22 ls.scipy_iterative qmr
... matrix size: (9511, 9511)
... nnz: 132239
sfepy: updating materials...
sfepy: coef
sfepy: ...done in 0.00 s
sfepy: nls: iter: 0, residual: 3.587850e+00 (rel: 1.000000e+00)
sfepy: qmr convergence: 0 (successful exit)
sfepy: rezidual: 0.01 [s]
sfepy: solve: 0.11 [s]
sfepy: matrix: 0.02 [s]
sfepy: nls: iter: 1, residual: 3.549567e-12 (rel: 9.893297e-13)
... rezidual: 0.01 [s]
... solve: 0.11 [s]
... matrix: 0.02 [s]
... condition: 0, err0: 3.588e+00, err: 3.550e-12
... solution times (rezidual norms):
... 0.05 [s] (3.288e-12) : i20 ls.scipy_iterative cg
... 0.07 [s] (2.835e-12) : i21 ls.scipy_iterative bicgstab
... 0.09 [s] (2.428e-12) : i10 ls.petsc cg icc
... 0.11 [s] (3.550e-12) : i22 ls.scipy_iterative qmr
... 1.34 [s] (1.554e-14) : d01 ls.scipy_direct superlu
... 1.49 [s] (4.898e-15) : d00 ls.scipy_direct umfpack
... 10000000000.00 [s] (1.000e+10) : i00 ls.pyamg ruge_stuben_solver
... 10000000000.00 [s] (1.000e+10) : i01 ls.pyamg
smoothed_aggregation_solver
+++ test_solvers: ok
>> all passed in 5.02 s
1 test file(s) executed in 5.02 s, 0 failure(s) of 1 test(s)
WARNING! There are options you set that were not used!
WARNING! could be spelling mistake, etc!
Option left: name:-sub_pc_type (no value)
gmh@calx039$