[FLASH-USERS] Problem with HYPRE library
ascenzi
stefano.ascenzi at roma2.infn.it
Thu Oct 26 16:56:12 EDT 2017
Dear Klaus,
The version of HYPRE is 2.11 (while the version of FLASH is FLASH4.4)
The content of the directory /usr/local/Hypre/lib is the file libHYPRE.a
and nothing else.
I have also the line that you mentioned in my makefile.h:
FFLAGS_HYPRE = -I ${HYPRE_PATH}/include
As concerns the HYPRE configuration I am not sure, but in the configure
file i see
enable-fortan and a comment says that the default value is yes.
Moreover in the config.log file I see
Configured with: ../gcc-6.3.0/configure --enable-languages=c++,fortran
so I think that fortran is enabled.
Thank you for your help,
Stefano
Il 2017-10-26 20:03 Klaus Weide ha scritto:
> On Thu, 26 Oct 2017, ascenzi wrote:
>
>> Dear All,
>>
>> After the installation of the HYPRE library I am trying to compile a
>> simulation that requires the Diffuse module.
>
> Hi Stefano,
>
> Which version of HYPRE are you trying to use?
>
>> Unfortunately I obtain the following error:
>>
>>
>>
>> -L/usr/local/Hypre/lib -lHYPRE
>
> What is the contents of the directory /usr/local/Hypre/lib ?
>
>
>> Undefined symbols for architecture x86_64:
>> "_hypre_boomeramgcreate_", referenced from:
>> _gr_hypresetupsolver_ in gr_hypreSetupSolver.o
>> "_hypre_boomeramgdestroy_", referenced from:
>> _gr_hypredestroysolver_ in gr_hypreDestroySolver.o
>> "_hypre_boomeramggetfinalreltvres_", referenced from:
>> _gr_hypresolve_ in gr_hypreSolve.o
>>
>> …
>> …
>>
>> "_hypre_sstructvectorsetboxvalues_", referenced from:
>> _grid_solvepoisson_ in Grid_solvePoisson.o
>> _gr_hypresetiniguess_ in gr_hypreSetIniGuess.o
>> _gr_hypreupdatesoln_ in gr_hypreUpdateSoln.o
>> "_hypre_sstructvectorsetobjecttyp_", referenced from:
>> _gr_hypresetupgrid_ in gr_hypreSetupGrid.o
>> ld: symbol(s) not found for architecture x86_64
>> collect2: error: ld returned 1 exit status
>> make: *** [flash4] Error 1
>
> How have you configured your HYPRE library?
>
> In particular, was the --enable-fortran flag enabled when you ran
> configure for HYPRE? This is necessary for FLASH to use HYPRE.
>
>
>>
>> In the Makefile.h I created the following library macro:
>>
>> LIB_HYPRE = -L${HYPRE_PATH}/lib -lHYPRE
>>
>> where HYPRE_PATH = /usr/local/Hypre, which should be the correct path.
>>
>> In order to fix some previous problem I added in the makefile also the
>> following line:
>> CFLAGS_HYPRE = -I ${HYPRE_PATH}/include
>
> You should also have another line:
>
> FFLAGS_HYPRE = -I ${HYPRE_PATH}/include
>
>
> Hope this helps,
>
> Klaus
More information about the flash-users
mailing list