[mesa-users] DIRect: global optimization for noisy problems

Jonathan Stott SJ jstottsj at gmail.com
Wed Sep 17 12:55:06 EDT 2014


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





More information about the Mesa-users mailing list