Skip to content

Update MMG Free_all and Init_mesh calls to use the latest API and fix Hypre import#700

Open
tmyllaeri wants to merge 1 commit intoElmerCSC:develfrom
tmyllaeri:update-mmg-and-hypre-interfaces
Open

Update MMG Free_all and Init_mesh calls to use the latest API and fix Hypre import#700
tmyllaeri wants to merge 1 commit intoElmerCSC:develfrom
tmyllaeri:update-mmg-and-hypre-interfaces

Conversation

@tmyllaeri
Copy link
Copy Markdown

I noticed that Elmer compilation fails with the latest version of both Hypre and MMG.

This PR changes the MMG calls to follow the example from MMG "develop"branch: https://github.com/MmgTools/mmg/commits/develop/libexamples/mmg3d/adaptation_example0_fortran/example0_a/main.F90

NOTE: This change is most likely not compatible with MMG master branch which is roughly year outdated from "develop"

HYPRE compilation is fixed by simple changing a single import from "krylov.h" to "_hypre_krylov.h"

@tmyllaeri
Copy link
Copy Markdown
Author

Build tests are failing. At least the Hypre import fails, though locally this seems to work

/home/runner/work/elmerfem/elmerfem/fem/src/SolveHypre.c:48:10: fatal error: _hypre_krylov.h: No such file or directory
   48 | #include "_hypre_krylov.h"

@raback
Copy link
Copy Markdown
Contributor

raback commented Oct 8, 2025

We should probably make some #if's for the old vs. new MMG stuff. The release version is still using the old and if develop is using the new it is difficult to alter between the two otherwise.

@tmyllaeri tmyllaeri force-pushed the update-mmg-and-hypre-interfaces branch from 216e2b3 to 42f28d8 Compare October 8, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants