[mesa-users] extras_check_model versus extras_finish_step

Bill Paxton paxton at kitp.ucsb.edu
Mon Apr 22 16:17:44 EDT 2013


Hi Ehsan,

Good question.   Let's look in star/job/run_star_support to get the answer.

Here's the call on extras_check_model:

            step_loop: do ! may need to repeat this loop
            
               if (stop_is_requested()) then
                  continue_evolve_loop = .false.
                  result = terminate
                  exit
               end if
            
               result = star_evolve_step(id, first_try, just_did_backup)
               if (result == keep_going) result = star_check_model(id)
               if (result == keep_going) result = extras_check_model(s, id, id_extra)
               if (result == keep_going) result = star_pick_next_timestep(id)            
               if (result == keep_going) exit step_loop

This is followed by code to take care of redo, retry, backup, or terminate.
So extras_check_model is called 1st and can request any of those.

The call on extras_finish_step comes after we have accepted the step.
It can terminate the run, but it cannot request a redo, retry, or backup.

Hope that helps,
Bill





On Apr 22, 2013, at 1:09 PM, Ehsan Moravveji wrote:

> Hi again,
> I wonder I kept this question for long with me! 
> But, I still wonder the difference between a call to a subroutine (e.g. star_write_osc) from extras_check_model and extras_finish_step.
> 
> Put it another way, which one is called first and which one comes later?
> 
> Kind regards
> 
> Ehsan Moravveji
> http://moravveji.webs.com/
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter_______________________________________________
> 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/20130422/10cfec95/attachment.html>


More information about the Mesa-users mailing list