[Mesa-users] Can't get astero module to work outside test_suite

TUCHOW, NOAH WOLFE nxt5109 at psu.edu
Fri Feb 1 17:59:16 EST 2019


Okay, thanks.
Next time I want to start a new model using the astero module, I'll copy the astero/work folder.

Noah Tuchow
Penn State University
Department of Astronomy and Astrophysics
532C Davey Lab
University Park, PA 16802


On Fri, Feb 1, 2019 at 5:09 PM Warrick Ball <W.H.Ball at bham.ac.uk<mailto:W.H.Ball at bham.ac.uk>> wrote:
Hi Noah,

For running the astero module, you should copy
`$MESA_DIR/star/astero/work` to a new folder of your choice, in much the
same way as you would normally copy `$MESA_DIR/star/work`.  That said, I
think removing all the redefined `MESA_DIR` variables from the
`example_astero` in the test suite (as it sounds like you've now done)
accomplishes more or less the same thing.

Cheers,
Warrick

------------
Warrick Ball
Postdoc, School of Physics and Astronomy
University of Birmingham, Edgbaston, Birmingham B15 2TT
W.H.Ball at bham.ac.uk<mailto:W.H.Ball at bham.ac.uk>
+44 (0)121 414 4552


On Fri, 1 Feb 2019, TUCHOW, NOAH WOLFE wrote:

> I managed to get it to work. I neglected to look at the primary inlist and instead looked in inlist3. In 'inlist' there was a line setting
> mesa_dir='../../..', so I just commented it out.
> Noah Tuchow
>
>   Noah Tuchow
>
>   Penn State University
>
>   Department of Astronomy and Astrophysics
>
>   532C Davey Lab
>
>   University Park, PA 16802
>
>
>
> On Fri, Feb 1, 2019 at 3:55 PM Noah Tuchow <nxt5109 at psu.edu<mailto:nxt5109 at psu.edu>> wrote:
>       Hello,
> I've been having a problem getting the astero module to work outside of the MESA test suite directory. I copied the example_astero folder
> and put it somewhere else on my computer so that I could modify it and play around with changing the parameters. However, while the example
> seems to work when I run it in the test_suite directory, it won't run in the new directory. I looked at the makefile for the example and saw
> that it contained a relative path for MESA_DIR, and I deleted that line because MESA_DIR is already defined as my system mesa directory. Now
> the makefile just contains the line "include $(MESA_DIR)/star/astero/makefile"
>
> However, this doesn't appear to resolve the issue. When I make the example, I get the warning:
> /data/nxt5109/mesa-r10398/star/astero/src/gyre_support.f:171:0:
>         filename = TRIM(fgong_prefix)//TRIM(num_string(s%model_number))//TRIM(fgong_postfix)
>
> Warning: '.filename' may be used uninitialized in this function [-Wmaybe-uninitialized]
>
> Running the example anyways gives the following error:
>
>  read inlist_astero_search_controls
>  open failed for ../../../data/version_number
>  please check that mesa_dir is set correctly
>  failed in stardata_init
>  star_init ierr           2
>
> Is there some other file with a relative path that I need to change? How can I modify this example to get it to work outside the test suite?
> Have other people been able to get the astero module to work outside of the mesa test_suite or astero/work directories?
>
> I'm using MESA r-10398 on CentOS linux.
>
> Thanks,
> Noah Tuchow
>
>   Noah Tuchow
>
>   Penn State University
>
>   Department of Astronomy and Astrophysics
>
>   532C Davey Lab
>
>   University Park, PA 16802
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20190201/4dadbd96/attachment.html>


More information about the Mesa-users mailing list