[Mesa-users] Compilation error

Amber Lauer-Coles amberlauer at gmail.com
Mon Aug 1 19:15:02 UTC 2022

Hi Anohita, I believe the problem you're experiencing is that of several
naming changes. The function that theta_e appears in is called in
run_star_extras.f90, it is "net_get". In the most recent MESA the screening
mode that theta_e refers to and the variable itself has been removed. As
with any code, things in MESA are improved, expanded, and added and so
these naming changes are necessary. The quantity "theta_e" in 15410 is a
quantity used to describe Graboske electron screening as described in the
paper by the same author. Looking at the changelog for the most recent
version of MESA, this parameter and the accompanying screening mode have
been removed. You can see the original definition of net_get in
mesa_dir/net/publib/net_lib.f90 for r15410 around line 588 and then the
same function call in the exact same place for r21.12.1. Compare this to
the net_get call in the run_star_extras.f90 in the model/src folder and you
should be able to update that function call. In fact you'll see several
vars that don't exist in the updated version of MESA. Delete these and then
do ./clean and ./mk and you *should* get past that error, though that
doesn't guarantee you won't encounter others. Good luck!
Dr. Amber Lauer-Coles
Research Associate
Nuclear Science & Technology dept.
National Nuclear Data Center
Brookhaven National Laboratory
33 No. Renaissance Road, Upton NY 11973
Bldg. 817
acoles at bnl.gov

On Thu, Jul 21, 2022 at 9:35 AM Anohita Mallick via Mesa-users <
mesa-users at lists.mesastar.org> wrote:

> I am new to using MESA. I have been trying to replicate the results of
> this paper
> *"A helium-flash-induced mixing event can explain the lithium abundances
> of red clump stars" *
> for one of my projects. The required MESA input/output files are available
> on zenodo.
> https://zenodo.org/record/4688026#.YtlUF9JBxNg
> <https://urldefense.com/v3/__https://zenodo.org/record/4688026*.YtlUF9JBxNg__;Iw!!OToaGQ!oCP8HhdykkrBioOxvLDdkAfcb6qmcbFUnt9jrJPqNDMJhzbXXsOV631LTud4BJctC_5JV4HkwDbfJKnePDiw6Bu8qttLmmf9$>
> I get the following error while trying to compile.
> ../src/run_star_extras.f90:381:39:
>   381 |             screening_mode, s% theta_e(k), &
>       |                                       1
> Error: 'theta_e' at (1) is not a member of the 'star_info' structure
> I am using the latest version r22.05.1
> MESA SDK : mesasdk-x86_64-linux-22.6.1
> As far as I understand there is some problem with the run_star_extras.f90
> file. But I could not fix the error. Is there any way out?
> _______________________________________________
> mesa-users at lists.mesastar.org
> https://urldefense.com/v3/__https://lists.mesastar.org/mailman/listinfo/mesa-users__;!!OToaGQ!oCP8HhdykkrBioOxvLDdkAfcb6qmcbFUnt9jrJPqNDMJhzbXXsOV631LTud4BJctC_5JV4HkwDbfJKnePDiw6Bu8qpV3FCIQ$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20220801/240b36cd/attachment.htm>

More information about the Mesa-users mailing list