Netgen Issue for WSL

Hello,

I am using Windows Subsystem for Linux (WSL) with Ubuntu 22.04. I installed ngsolve via pip3 install ngsolve, which works fine when testing in an interactive shell (i.e., import ngsolve has no errors).

However, when I try to use ngsolve in my own package, I get the error - netgen.libngpy._meshing.NgException: SparseMatrix::InverseMatrix: UmfpackInverse not available.

Can anyone help with this? I tried it a macOS and this error did not arise… I am wondering if it is a WSL specific error.

Thank you,
Matthew

Hi Matthew,

Umfpack as solver is not available on all pip-Packages. Use “inverse=pardiso” instead (or leave this option blank to use the best solver available on the system, either umfpack or pardiso, depending on the distribution).

Best,
Matthias