[mesa-users] Using kap module in another program

Roni Waldman roni181066 at gmail.com
Tue Oct 20 10:17:26 EDT 2015


Hi,

To follow-up, after adding the appropriate libraries to the linking
command, I was able to link the gfortran compiled mesa/kap package to my
external code, which is compiled with intel fortran.

Roni

On Mon, Oct 19, 2015 at 11:01 PM Robert Farmer <rjfarmer at asu.edu> wrote:

> Hi
> Have you compiled everything with the same compiler?
>
> Rob
>
> On Mon, Oct 19, 2015 at 12:55 PM, Roni Waldman <roni181066 at gmail.com>
> wrote:
>
>> Hi all,
>>
>> In continuation to this issue, I followed the example, and succeeded in
>> compiling and running a simple program that calls the kap package in a
>> separate directory.
>> Now I am trying to link the kap package to an existing outside program,
>> and I get a series of messages of the sort:
>>
>> /home/waldman/mesa-r7624/lib/libkap.a(kap_lib.o): In function
>> `__kap_lib_MOD_kap_get_blend_1_2':
>> kap_lib.f90:(.text+0x37b): undefined reference to
>> `_gfortran_transfer_character_write'
>>
>> I suppose I lack some compiler directives which are present in the mesa
>> makefiles, but absent in my program's makefiles.
>> Any help on where to look?
>>
>> Thanks,
>> Roni
>>
>> On Tue, Oct 13, 2015 at 4:25 PM Roni Waldman <roni181066 at gmail.com>
>> wrote:
>>
>>> Got it, will download the whole thing.
>>> Thanks,
>>> Roni
>>>
>>> On Tue, Oct 13, 2015 at 4:24 PM Josiah Schwab <jwschwab at berkeley.edu>
>>> wrote:
>>>
>>>> Hi Roni
>>>>
>>>> > This is indeed very helpful.  Is there a simple way to download only
>>>> > what is needed for the kap package, or should I download the entire
>>>> > MESA code for this?
>>>>
>>>> It is likely easier to just download all of MESA, but you can browse the
>>>> source tree and download files one-by-one at
>>>>
>>>> http://sourceforge.net/p/mesa/code/7624/tree/trunk/kap/
>>>>
>>>> Hope that helps,
>>>> Josiah
>>>>
>>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> mesa-users mailing list
>> mesa-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mesa-users
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20151020/67538d95/attachment.html>


More information about the Mesa-users mailing list