[mesa-users] Custom stopping condition - Two inlists

Robert FARMER rjfarmer at asu.edu
Tue Mar 24 20:30:43 EDT 2015


Hi
You could use the extra controls (see controls.defualt)

         ! extra params as a convenience for developing new features
         ! note: the parameter `num_x_ctrls` is defined in `star_def.f`

      x_ctrl(1:num_x_ctrls) = 0d0
      x_integer_ctrl(1:num_x_ctrls) = 0
      x_logical_ctrl(1:num_x_ctrls) = .false.

To pass an extra variable in your inlists which can then be checked in the
run_stars before using your exit condition, then you define it to be false
in the ones you don't want to exit and true when you do.

See the code comments here:
http://mesa.sourceforge.net/run_star_extras.html#toc-1-4
for how to use them

Rob






On Tue, Mar 24, 2015 at 5:16 PM, Héctor MR <HEM52 at pitt.edu> wrote:

>   Dear all,
>
>   I have a question regarding custom stopping conditions. I have been able
> to successfully implement my own condition (run_star_extras.f), but I am
> working with several inlists and I need my condition to only affect the
> last one. Is there any way I can achieve it? I have been looking for
> solutions without success for a long time. My previous inlists are just
> ignoring their conditions and the first one runs until reaching the custom
> stopping condition.
>
>   Thanks!
>
>
>   --
>   Héctor
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> 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/20150324/91cecd71/attachment.html>


More information about the Mesa-users mailing list