Hai,
I was running a linear elastic problem but encountered an error
raceback (most recent call last):
File "/lfs1/usrscratch/phd/am19d027/job527879/test3d.py", line 76, in <module>
sigmaT = project(sigma(u),WV,solver_type="cg")
File "/lfs/sware/anaconda3_2019/envs/fenicsproject/lib/python3.9/site-packages/dolfin/fem/projection.py", line 132, in project
A, b = assemble_system(a, L, bcs=bcs,
File "/lfs/sware/anaconda3_2019/envs/fenicsproject/lib/python3.9/site-packages/dolfin/fem/assembling.py", line 382, in assemble_system
assembler.assemble(A_tensor, b_tensor)
RuntimeError:
*** -------------------------------------------------------------------------
*** DOLFIN encountered an error. If you are not able to resolve this issue
*** using the information listed below, you can ask for help at
***
*** fenics-support@googlegroups.com
***
*** Remember to include the error message listed below and, if possible,
*** include a *minimal* running example to reproduce the error.
***
*** -------------------------------------------------------------------------
*** Error: Unable to successfully call PETSc function 'MatXIJSetPreallocation'.
*** Reason: PETSc error code is: 63 (Argument out of range).
*** Where: This error was encountered inside /home/conda/feedstock_root/build_artifacts/fenics-pkgs_1608660238187/work/dolfin/dolfin/la/PETScMatrix.cpp.
*** Process: 0
***
*** DOLFIN version: 2019.1.0
*** Git changeset: 640ef70247ae212e16ae9f24fc9bc603b506f78a
The code was
mesh = Mesh('disK3d.xml')
V = VectorFunctionSpace(mesh, "CG", 2)
WV=TensorFunctionSpace(mesh, "DG", 1)
u = Function(V)
solve(a == L, u, bc,solver_parameters={'linear_solver':'cg'})
sigmaT = project(sigma(u),WV,solver_type="cg")