ginkgo-project / ginkgo

Numerical linear algebra software package
https://ginkgo-project.github.io/
BSD 3-Clause "New" or "Revised" License
401 stars 88 forks source link

fix the casting issue in mixed multigrid #1663

Closed yhmtsai closed 1 month ago

yhmtsai commented 1 month ago

The vector e uses the precision of next level, so we can not cast the vector e to the precision of the current level. We can only do it in the last level because the coarsest solver uses the same precision as the last level.