[Mesa-users] ./re functionality for cluster

Rob Farmer r.j.farmer at uva.nl
Thu Apr 11 11:56:08 EDT 2019


Yes if you look in a ./re script (any) you can see what it does. ./star
will use restart_photo if it exists, if not it'll start from scratch.

Rob


On Thu, 11 Apr 2019, 17:37 amber lauer, <amberlauer at gmail.com> wrote:

>
>
> On Thu, Apr 11, 2019 at 3:35 AM Rob Farmer <r.j.farmer at uva.nl> wrote:
>
>> Hi
>>
>> So the ./re script just copies the photo you give it to a file called
>> restart_photo into the current working directory then it calls ./star,
>> while ./rn will remove any restart_photo before calling star. So what you
>> could do is always just call ./star directly
>>
>
> Hey Rob, looking at your work on structuring many jobs
> <http://cococubed.asu.edu/mesa_market/many_jobs.html> it looks like this
> is what you do, via
>
> #Run MESA
> $MESA_CLUSTER_BASE/star
>
>
> But there's not really a discussion in the guide of restart_photo. So can
> I assume in that script that the effect will be to run MESA with whatever
> photo is currently the restart_photo, or from the start if none exists yet?
> Again thanks for that guide. It was a lifesaver.
>
>
>
>
>
>
>
>> (no ./rn or ./re). Then in  your extras_finish_step:
>>
>> use star_lib
>> if(mod(s%model_number,s%photo_interval)==0) then
>>     call star_save_for_restart(s%id,'restart_photo',ierr)
>> end if
>>
>> This will then write a photo out with the name restart_photo. The first
>> time you run a model with ./star there wont be a restart_photo so it'll act
>> like ./rn. while the second time the restart_photo will exist so calling
>> ./star will act like ./re (without you needing to copy and photos yourself).
>>
>> Rob
>>
>>
>>
>> On Thu, 11 Apr 2019 at 03:14, amber lauer via Mesa-users <
>> mesa-users at lists.mesastar.org> wrote:
>>
>>> Great, thanks. Though, for those attempting it in the future I found it
>>> easier to just write the restart portion into the batch submission script.
>>> At least with the aforementioned many jobs structure.
>>>
>>> On Wed, Apr 10, 2019, 5:16 PM Josiah Schwab <jwschwab at ucsc.edu> wrote:
>>>
>>>> 2)Alter re to copy the newest photo to restart_photo via
>>>>>
>>>>> *cp $(ls -t  | head -1) restart_photo*
>>>>>
>>>>> and comment out everything above it. However, I almost usually find
>>>>> when I want to do things like this that it already exists in some form. So
>>>>> I'm checking with the mailing list.
>>>>>
>>>>
>>>> I usually do some variant of this.
>>>>
>>>> Josiah
>>>>
>>> _______________________________________________
>>> mesa-users at lists.mesastar.org
>>> https://lists.mesastar.org/mailman/listinfo/mesa-users
>>>
>>>
>
> --
> Amber Lauer
> Postdoctoral Researcher
> Triangle Universities Nuclear Lab
> Duke University
> amber.lauer at tunl.duke.edu <amber.lauer at duke.edu>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20190411/5534c915/attachment.html>


More information about the Mesa-users mailing list