[Mesa-users] Help:Regarding extras routine error
thomas.steindl at uibk.ac.at
Sun Jun 26 21:58:13 UTC 2022
It does seem to me like you have attached the wrong version of the run_star_extras file to this mail.
Independent, it seems like your subroutine does not match the variables MESA is expecting. mesa-r21.12.1/star/other shows that it other wind expects a function of the form subroutine null_other_wind(id, Lsurf, Msurf, Rsurf, Tsurf, X, Y, Z, w, ierr) while you are providing a function of the form subroutine pulsar_evaporation_wind(id, Lsurf, Msurf, Rsurf, Tsurf, w, ierr). As you can see, yours is missing the input variables X, Y, and Z. This should explain the error you are receiving.
That said, I find your run_star_extras looks like its missing some typical functions such as extras_startup, extras_start_step etc. I have no experience with the binary module in MESA, but since you are looking to evolve a binary, you might want look into run_binary_extras instead of run_star_extras.
Thomas Steindl, MSc
University of Innsbruck | Institute for Astro- and Particle Physics
Tel: +43 512507 52031
Mail: thomas.steindl at uibk.ac.at
> Am 26.06.2022 um 21:06 schrieb ABHIJNAN KAR 20064 <abhijnank20 at iiserbpr.ac.in>:
> I am trying to evolve a binary model with effects of evaporation wind being considered.For that i am implementing an extras routine but it is yielding error as follows.
> <Screenshot 2022-06-27 at 12.34.57 AM.png>
> Also I am attaching the extras file.
> Can anyone please help?i am not understanding as to why this error is coming cuz the pointer is supposed to be like that per documentation.
> ABHIJNAN KAR
> BS-MS,IISER Berhampur
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mesa-users