[mesa-users] Using MESA modules in external program
Ryan J Orvedahl
rorvedahl at ic.sunysb.edu
Fri Jun 15 15:20:56 EDT 2012
Thanks for the advice Bill.
I went back to the beginning and the only change I made to the one_zone_burn.f code was changing it from a program to a subroutine with no arguments. I still found the following error on compiling:
gfortran -fno-range-check -ffree-form -c ../src/main_driver.f90
gfortran -fno-range-check -ffree-form -I../../mesa/include -c ../src/one_zone_burn.f
gfortran -o ../xtest main_driver.o one_zone_burn.o \
-L../../mesa/lib -leos -lchem -lnet -lrates -lweak -lreaclib -lneu -lscreen -linterp_2d -linterp_1d -lnum -lutils -lalert -lconst -lmtx -lmesaklu /usr/lib/liblapack.a /usr/lib/libblas.a
../../mesa/lib/libnet.a(net_burn_const_P.o): In function `__net_burn_const_p_MOD_burn_jacob':
net_burn_const_P.f:(.text+0xcca): undefined reference to `__eos_lib_MOD_radiation_pressure'
net_burn_const_P.f:(.text+0xeec): undefined reference to `__eos_lib_MOD_eospt_get'
net_burn_const_P.f:(.text+0x2567): undefined reference to `__eos_lib_MOD_eos_theta_e'
collect2: error: ld returned 1 exit status
make: *** [xtest] Error 1
Any help would be greatly appreciated.
Thanks,
Ryan
----- Original Message -----
From: Bill Paxton <paxton at kitp.ucsb.edu>
Date: Friday, June 15, 2012 12:02 pm
Subject: Re: [mesa-users] Using MESA modules in external program
To: Ryan J Orvedahl <rorvedahl at ic.sunysb.edu>
Cc: mesa-users at lists.sourceforge.net
> Hi Ryan,
>
> > I am trying to use the MESA network in an external program.
>
> excellent!
>
> > To start, I wrote a simple driver routine to call the
> one_zone_burn.f code contained in the mesa/net/test directory. I
> slightly modified the main program in one_zone_burn.f
>
> Go back to the beginning and start with an unedited copy of
> one_zone_burn.f to make sure that you can run with that okay
> before you make any changes.
> Then make one small change and recheck to see if it still works.
> Continue until something breaks -- then perhaps we can figure
> out why it broke.
>
> At some point you'll perhaps want to call net_1_zone_burn
> directly so that you can use the "dxdt_source_term" source term.
> Ask Mike about it. ;-)
>
> Cheers,
> Bill
>
>
Ryan J Orvedahl
Undergrad Student
Stony Brook University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20120615/c6204024/attachment.html>
More information about the Mesa-users
mailing list