[mesa-users] Taking smaller time steps

Bill Paxton paxton at kitp.ucsb.edu
Sun Jun 1 12:21:31 EDT 2014


Hi,

Take a look at the built-in timestep controls by looking in star/defaults/controls.defaults -- search for the string "max_timestep =" to find the section.

For terminal output concerning the selection of timesteps, turn on some or all of these:

      report_why_dt_limits = .true.
         ! if true, produce terminal output about choice of timestep
      report_all_dt_limits = .false.
         ! if true, produce terminal output about all influences for choice of timestep
      report_hydro_dt_info = .false.
         ! if true, produce terminal output about choice of timestep based on varcontrol_target
      report_dX_nuc_drop_dt_limits = .false.
         ! if true, report timestep limits from drop in abundance from nuclear reactions

For the nitty-gritty details, star/private/timestep.f is the place to look.   But before you start rewriting it, let us know!  ;D

Rather than change code in mesa, you can use your run_star_extras to write your own code to set the next timestep in extras_check_model.

Cheers,
Bill





On Jun 1, 2014, at 5:01 AM, Liron Mcley wrote:

> Hi everyone,
> 
> I went through the mailing list and found that theoretically it is possible to make mesa take smaller time steps by modifying a few lines in /star/private/timestep.f . But this isn't working for me at all. 
> I put,
>    write (*,*) 'time_step (s)=', s% dt_next / secyer
> at the beginning of timestep_controller just to see if I get this line when mesa runs, but nothing. Can anyone please help me ?
> 
> Thank you,
> Liron Mcley
> ------------------------------------------------------------------------------
> Time is money. Stop wasting it! Get your web API in 5 minutes.
> www.restlet.com/download
> http://p.sf.net/sfu/restlet_______________________________________________
> mesa-users mailing list
> mesa-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mesa-users





More information about the Mesa-users mailing list