jgoldfar / Hypre.jl

Julia wrapper for the Hypre (https://computing.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods) linear solver library
MIT License
6 stars 2 forks source link

Algebraic Multigrid #8

Open rleegates opened 9 years ago

rleegates commented 9 years ago

Hi Max,

I'm interested in interfacing Hypre for use of the AMG solver it provides. What's the status of Hypre.jl's support on that front?

Best, Robert

jgoldfar commented 9 years ago

The low-level wrappers are complete, including AMG (as far as I know, they were generated by Clang.jl.) Working with them and the C interface in Julia has been tricky; it looks like Julia v0.4 may be required.

rleegates commented 9 years ago

Cool, do you possibly have a minimal example that you can point me too? I'm looking to use AMG as a black-box sparse solver.

Where does the 0.4 limitation stem from? I'm currently rather unwilling to migrate to unstable versions...

jgoldfar commented 9 years ago

The current progress towards a working example is in test/ex1.jl; MPI.jl seems to work fine, but some segfault crops up as we use more of the converted codes (almost directly translated from their ex1.c), either due to initialization or garbage collection, looks like. I suggested v0.4 might be necessary because the memory management model is more explicit see the latest docs which would at least make working around this easier.

Have been making some progress with it locally in v0.3. Any ideas you have there are welcome!