[FLASH-USERS] problem compiling flash to use HYPRE

Slavin, Jonathan jslavin at cfa.harvard.edu
Mon Sep 28 11:15:58 EDT 2015


Hi Klaus,

I asked the HYPRE developers about this and this is the response I got:
"The current version uses Real.  We replaced the Dbl type when we added
support for complex types sometime back in 2013.  Hopefully this answers
your question."

So, given this, I'd say that gr_hypreF90CAdaptors.c should be edited to
replace hypre_F90_Dbl with hypre_F90_Real.  In fact I did that - I needed
to replace hypre_F90_Dbl with hypre_F90_Real and hypre_F90_PassDbl with
hypre_F90_PassReal - and it worked.  I'm now able to compile and unsplit
diffusion with thermal conduction works as it should.

Regards,
Jon

On Thu, Sep 24, 2015 at 12:53 PM, Slavin, Jonathan <jslavin at cfa.harvard.edu>
wrote:

> Hi Klaus,
>
> I moved aside the HYPRE 2.10.1 directories and installed version 2.10b,
> but got the same results.  I'm wondering if just changing that line for
> hypre_F90_Dbl to hypre_F90_Real might work.  Any ideas?
>
> Regards,
> Jon
>
> P.S. My name is Jon, not Joe
>
> On Thu, Sep 24, 2015 at 12:26 PM, Klaus Weide <klaus at flash.uchicago.edu>
> wrote:
>
>> On Thu, 24 Sep 2015, Slavin, Jonathan wrote:
>>
>> > I'm trying to do a run that includes unsplit diffusion (which, it seems
>> is
>> > necessary to use diffusion and paramesh).  This then requires HYPRE
>> which I
>> > do have installed.  Nevertheless I run into an error during compilation:
>> > gr_hypreF90CAdapters.c(20): error: identifier "hypre_F90_Dbl" is
>> undefined
>> >         hypre_F90_Dbl *cfTol,
>> > ​:Looking through the header files that come with HYPRE I can't see
>> > anywhere that hypre_F90_Dbl is defined, though hypre_F90_Real is defined
>> > (in fortran.h)​.  I'm using the latest version of HYPRE (2.10.1) and
>> FLASH
>> > (4.3).  Any help would be appreciated.
>>
>> Hello Joe,
>>
>> We haven't yet tested the FLASH code with the latest release of HYPRE,
>> which was announced only recently.  Maybe some minor changes in the FLASH
>> code will be necessary.
>>
>> In the meantime, HYPRE 2.10.0b and 2.09.0b should work for you.
>>
>> Klaus
>
>
>
>
> --
> ________________________________________________________
> Jonathan D. Slavin                 Harvard-Smithsonian CfA
> jslavin at cfa.harvard.edu       60 Garden Street, MS 83
> phone: (617) 496-7981       Cambridge, MA 02138-1516
> cell: (781) 363-0035             USA
> ________________________________________________________
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20150928/aae2438b/attachment.htm>


More information about the flash-users mailing list