[mesa-users] DIRect: global optimization for noisy problems
Warrick Ball
wball at astro.physik.uni-goettingen.de
Thu Sep 18 02:47:07 EDT 2014
Jonathan,
Thanks! Following your advice, I folded the DIRect source into the MESA
makefile so that they're compiled the same way, and it all now compiles
fine. The function call seems to be working, so now it's just a case of
fighting my way through initializing the call properly.
Cheers,
Warrick
On Wed, 17 Sep 2014, Jonathan Stott SJ wrote:
> Hi Warrick,
>
> I tried downloading the file here (without integrating into MESA) and it compiles and links fine with gfortran and the current SDK.
>
> Looking at the object files though, the internal name of the function is
>
>> 0000000000000000 T _direct_
>
> while your mesa code is trying to link against direct_.
>
> This ooks like a compiler issue, specifically the internal naming convention. For C functions, gcc prepends an underscore (so foo() becomes "_foo" in the object file). For fortran subroutines (and functions), gfortran by default puts an underscore on both end (so foo() becomes "_foo_").
>
> It looks like you've compiled the DIRect library using normal Fortran naming conventions, but mesa is set (via a compiler flag) so use C naming conventions.
>
> -Jonathan
>
> On Sep 17, 2014, at 9:55 AM, Warrick Ball <wball at astro.physik.uni-goettingen.de> wrote:
>
>> http://www4.ncsu.edu/~ctk/SOFTWARE/DIRECTv204.tar.gz
>
>
------------
Warrick Ball
Postdoc, Institut für Astrophysik Göttingen
wball at astro.physik.uni-goettingen.de
+49 (0) 551 39 5069
More information about the Mesa-users
mailing list