[mesa-users] Custom stopping condition - Two inlists
Max Katz
maxpkatz at gmail.com
Tue Mar 24 20:31:24 EDT 2015
There's a number of ways to do it, but the cleanest is probably to take
some inlist parameter that you're not using, and set it to a different
value for each inlist. Then test on that variable in your run_star_extras
to determine if you want to apply the stopping criterion. It could be some
piece of physics you're not using, but it might be better to use something
more suited to the purpose. I see that in controls.defaults we have
! 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.
If you set one of these to a particular value (say x_logical_ctrl(10) =
.false. for every inlist but the last, and .true. for the last), then you
can obtain what you want to do.
Max Katz
Ph.D. Candidate, Department of Physics and Astronomy
Vice President, Graduate Student Organization
Stony Brook University
http://astro.sunysb.edu/mkatz/
On Tue, Mar 24, 2015 at 8: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/2f002594/attachment.html>
More information about the Mesa-users
mailing list