Replies: 1 comment 3 replies
-
Could you try As for the undefined reference when MPI is not used, I don't know. That's a hypre function. Maybe it has something to do with how hypre is compiled. Nevertheless, you can always run on just one process and your serial should be just fine even if it's compiled with MPI. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to use a hypre solver as the bottom solver in my fortran code by calling multigrid%set_bottom_solver(3). I think the hypre solver is indeed called because when I use the default AMReX solver the linear solver diverges while when I set it to hypre it converges. I do not see the output shown in the example ABecLaplacian_C (HYPRE BoomerAMG: Num. iterations = ..; Relative residual = .....) but I assume this is due to the verbosity of the bottom solver.
My issue is that I cannot pass parameters to hypre by following what is said on the source documentation page i.e. setting amrex.init_hypre=1 in the input followed by arguments of the hypre.bamg_verbose=1
In case it is relevant, I built AMReX as an external library and tried different configure options:
In cases 1 and 3 my code can compile and run. My code is not written to be parallelized with MPI so I would prefer to build AMReX without mpi. In case 2 I get errors during (I think) the linking of unidentified references, e.g. "/home/konstantinos/amrex/Src/Extern/HYPRE/AMReX_HypreNodeLap.cpp:308: undefined reference to `HYPRE_IJVectorSetValues'"
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions