[mesa-users] 回复:Re: How to use pointer s1, s2 to call for star_info elements during binary module?
jiakun1219
jiakun1219 at 163.com
Thu Nov 27 07:26:57 EST 2014
Thank you very much!
I have just forget to add "s => b% s1" in my run_binary_extras,and now the problem has been solved.
But I just meet another problem that how could I add rotation during a binary evolution?
I means when I add the sencenses below:
rotation_flag = .true.
new_rotation_flag = .true.
change_rotation_flag = .true.
change_initial_rotation_flag = .true.
in &star_job binary/in test_suite/binary_donor_only/inlist1 or inlist2, it dosen't work, and the omega is zero.
Could I add rotation in the &binary_controls?
I'm very sorry for my poor Englisht and thanks very much again!
Jia,Kun
At 2014-11-27 16:35:50, "Pablo Marchant" <pamarca at gmail.com> wrote:
Jia Kun, could you please provide your run_star_extras.f to see the source of the problem?
El 27/11/2014 5:35, "jiakun1219" <jiakun1219 at 163.com> escribió:
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
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
mesa-users mailing list
mesa-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20141127/b46c5bce/attachment.html>
More information about the Mesa-users
mailing list