MatMechLab / AsFem

Advanced Simulation kit based on Finite Element Method (AsFem)
https://matmechlab.github.io/AsFem
GNU General Public License v3.0
180 stars 53 forks source link

Automatically detect mumps #10

Closed yangbai90 closed 4 years ago

yangbai90 commented 4 years ago

According to some internet connection problems, the installation for the external packages, i.e. mumps or superlu_dist may become extremely slow in some cases. Therefore, we need an automatic detecter for the default solver.

The solution should be:

if(mumps_is_installed)
  solver=mumps
else
  solver=gmres
end
yangbai90 commented 4 years ago

By using the -HASMUMPS flag , now user can switch between the default solver or mumps solver

The detailed changes are here: 6454ea7617705900f26fc8c8816d48205b7048c2