[mesa-users] questions about the "Eulerian" scheme for eps_grav

Masanobu Kunitomo kunitomo at geo.titech.ac.jp
Fri Nov 21 00:13:32 EST 2014


Dear Josiah and Dean,

Thanks to Josiah’s comment, I succeeded in calculation! I attached the revised version of run_star_extras.f.
Thank you very much for your help!

Best wishes,
Masanobu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: run_star_extras.f
Type: application/octet-stream
Size: 14298 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20141121/ae1db28b/attachment.obj>
-------------- next part --------------




> On Nov 18, 2014, at 02:35, Josiah Schwab <jwschwab at berkeley.edu> wrote:
> 
> Hi Masanobu,
> 
>> Please check the attached file “run_star_extras.f”. I succeeded in
>> compiling, but just after running (./rn), I got the following message
>> and the calculation terminated:
>> ----------------------------------------------------------------------------------------------------------------------
>> Program received signal SIGSEGV: Segmentation fault - invalid memory
>> reference.
>> 
> ... snipped 10 lines ...
>> ./rn: line 2: 21670 Segmentation fault: 11 ./star_vlm
>> ----------------------------------------------------------------------------------------------------------------------
>> I apologise if my modifications were not appropriate. I have not
>> solved this problem yet.
> 
> I only had a minute to glance at your file, but you need to make sure to
> get the star pointer (s) associated with a given id.
> 
> That is, before you can use "s" within a subroutine, you need to do 
> 
>    ierr = 0
>    call star_ptr(id, s, ierr)
>    if (ierr /= 0) return
> 
> If you take a look at the stock run_star_extras.f in r7184, you'll see
> this idiom is now the first step of most of the extras_* subroutines.
> 
> Hope that helps,
> Josiah
> 



More information about the Mesa-users mailing list