Getting error while I am trying to solve my topology optimization problem in 3d

getting an error while I am trying to solve my topology optimization problem in 3d


Traceback (most recent call last):
  File "/mnt/exp.py", line 58, in <module>
    LeftFace().mark(facets, 1)
TypeError: mark(): incompatible function arguments. The following argument types are supported:
    1. (self: dolfin.cpp.mesh.SubDomain, meshfunction: dolfin.cpp.mesh.MeshFunctionSizet, marker: int, check_midpoint: bool = True) -> None
    2. (self: dolfin.cpp.mesh.SubDomain, meshfunction: dolfin.cpp.mesh.MeshFunctionDouble, marker: float, check_midpoint: bool = True) -> None
    3. (self: dolfin.cpp.mesh.SubDomain, meshfunction: dolfin.cpp.mesh.MeshFunctionBool, marker: bool, check_midpoint: bool = True) -> None

Invoked with: <__main__.LeftFace object at 0x7f79105fefc0>, <built-in method facets of PyCapsule object at 0x7f791f056220>, 1
root@d500a6252969:/mnt# python3 exp.py

UMFPACK V5.7.9 (Oct 20, 2019): ERROR: out of memory

Traceback (most recent call last):
  File "/mnt/exp.py", line 124, in <module>
    sens = compute_sensitivity()
  File "/mnt/exp.py", line 77, in compute_sensitivity
    solve_elasticity(rho.vector().get_local())
  File "/mnt/exp.py", line 88, in solve_elasticity
    solve(A, u_sol.vector(), b)
  File "/usr/lib/python3/dist-packages/dolfin/fem/solving.py", line 240, in solve
    return dolfin.la.solver.solve(*args)
  File "/usr/lib/python3/dist-packages/dolfin/la/solver.py", line 72, in solve
    return cpp.la.solve(A, x, b, method, preconditioner)
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 'KSPSolve'.
*** Reason:  PETSc error code is: 76 (Error in external library).
*** Where:   This error was encountered inside /src/dolfin/dolfin/la/PETScKrylovSolver.cpp.
*** Process: 0
***
*** DOLFIN version: 2019.2.0.dev0
*** Git changeset:  fd662efc1c0ddefa341c1dac753f717f6b6292a8
*** -------------------------------------------------------------------------  ```

Try using a solver other than UMFPACK. It’s notorious for having very limited memory use in its default settings.

1 Like