[Mesa-users] [EXT] custom write photos
Mathieu Renzo
mrenzo at arizona.edu
Wed Nov 5 22:11:50 UTC 2025
Mmh, you're right, not out of the box. I see an empty function in
$MESA_DIR/binary/public/binary_def.f90 that provides an interface, and
$MESA_DIR/binary/other/mod_other_binary_photo_write.f90 with a comment
saying it's always called. You could probably use these functions to
reimplement the content of $MESA_DIR/binary/private/binary_photo.f90,
but I have never tried to do this (I only saved the photos for the stars
not caring about the orbits)...
Hope this helps a bit!
Mathieu
On 11/5/25 14:00, Amadeusz Miszuda wrote:
> Hi Mathieu,
>
> I have not, but I believe it won't get me the binary run photo, right?
>
> Amadeusz
>
>> On 5 Nov 2025, at 18:40, Mathieu Renzo via Mesa-users
>> <mesa-users at lists.mesastar.org> wrote:
>>
>> Hi Amadeusz,
>>
>> Have you tried calling the function `star_write_photo` defined in
>> `$MESA_DIR/star/public/star_lib.def`?
>> That should be straightforward from run_star/binary_extras.f90, and I
>> have used it in the past (but can't find a snippet at the moment)
>>
>> Mathieu
>>
>> On 11/5/25 09:18, Amadeusz Miszuda via Mesa-users wrote:
>>> *
>>>
>>> *External Email*
>>>
>>> *
>>> ------------------------------------------------------------------------
>>> Hi All,
>>>
>>> I am trying to force MESA to write additional photos at specific
>>> moments of evolution from the run_binary_extras. Since I don’t see
>>> any controls, I have tried several options, including will_do_photo
>>> = .true. or calling the do_saves_for_binary subroutine, but they all
>>> fail, sometimes due to some compilation reasons, as:
>>> Undefined symbols for architecture arm64:
>>> "_do_saves_for_binary_", referenced from:
>>> ___run_binary_extras_MOD_extras_binary_finish_step in
>>> run_binary_extras.o
>>> ld: symbol(s) not found for architecture arm64
>>> collect2: error: ld returned 1 exit status
>>> make: *** [binary] Error 1
>>>
>>> FAILED
>>>
>>> Does anyone know a simple way to achieve that? Any help would be
>>> appreciated.
>>>
>>> Thanks!
>>> Amadeusz
>>>
>>>
>>>
>>>
>>> ——————————————————
>>> *Dr Amadeusz Miszuda*
>>> Postdoctoral Researcher
>>> Nicolaus Copernicus Astronomical Centre
>>> Polish Academy of Sciences,
>>> Warsaw, Poland
>>>
>>> _______________________________________________
>>> mesa-users at lists.mesastar.org
>>> https://lists.mesastar.org/mailman/listinfo/mesa-users
>>>
>> --
>> Mathieu Renzo <https://www.as.arizona.edu/~mrenzo/>
>> Assistant Professor
>> University of Arizona - Steward Observatory
>> _______________________________________________
>> mesa-users at lists.mesastar.org
>> https://lists.mesastar.org/mailman/listinfo/mesa-users
>> <https://lists.mesastar.org/mailman/listinfo/mesa-users>
>>
>
--
Mathieu Renzo <https://www.as.arizona.edu/~mrenzo/>
Assistant Professor
University of Arizona - Steward Observatory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20251105/0dbfc46e/attachment.htm>
More information about the Mesa-users
mailing list