[mesa-users] How to use pointer s1, s2 to call for star_info elements during binary module?

jiakun1219 jiakun1219 at 163.com
Wed Nov 26 23:34:26 EST 2014


Dear all,

When to evolve a binary system use the binary module in MESA,
I have noticed a paragraph in binary_data.inc as below:
      integer :: star_ids(2), star_extra_ids(2)
      ! pointers that are adjusted to donor and accretor
      type (star_info), pointer :: s_donor, s_accretor
      ! pointers to fixed stars
      type (star_info), pointer :: s1, s2
And when I use the pointer s1, s2 (or s_donor, s_accretor) to call for the star_info elements in my subroutine in run_binary_extras.f
it makes a error like "Program received signal SIGSEGV: Segmentation fault - invalid memory reference."
Then how to use the pointer s1, s2 (or s_donor, s_accretor) to call for the star_info during binary evolution?

Thank you very much!
Sincerely,
Jia Kun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20141127/19074884/attachment.html>


More information about the Mesa-users mailing list