[Mesa-users] Restart from a custom photo filename

Evan Bauer ebauer at ucsb.edu
Thu Jul 2 16:46:35 EDT 2020


Hi Anthony,

I think this isn't quite right if you're using the "rn" and "re" scripts to run (recommended), rather than executing "star" directly. Those scripts handle some of this logic for you, and only use "restart_photo" as an intermediate step.

In 12778, the default behavior is for MESA to restart from photo files found in the 'photos' directory, either from the most recent photo file if you run "./re" without any argument, or from another photo if you specify its name (e.g. "./re x100"). The ./re script copies the specified photo to the file "restart_photo" and runs from there.

So if I understand you correctly, I think you can solve your problem by setting "photo_directory" to unique names in different inlists for different runs if you want to track states for different runs in the same directory.

Cheers,
Evan


> On Jul 2, 2020, at 3:28 AM, Anthony Noll <anoll at irap.omp.eu> wrote:
> 
> Dear MESA community,
> 
> if I do not make any mistake, MESA restarts from a binary photo file if it finds a "restart_photo" file in the folder. Is there any way (as a hook in run_star_extras.f) to change this behavior, in order to be able to choose the restart photo filename directly from MESA? Having an unique filename may be an issue if there are several MESA runs in the same folder, and I would like to avoid using text saved models to guarantee complete consistency during the evolution.
> 
> Thanks in advance for your suggestions,
> 
> Best regards,
> 
> Anthony.
> 
> -- 
> Anthony Noll
> PhD Student
> Institut de Recherche en Astrophysique et Planétologie (IRAP)
> 14 Avenue Edouard Belin, 31400 Toulouse, France
> Tel. : +33 (0)5 61 33 27 20
> 
> _______________________________________________
> mesa-users at lists.mesastar.org
> https://lists.mesastar.org/mailman/listinfo/mesa-users
> 



More information about the Mesa-users mailing list