[Mesa-users] Add insist options to my code

Evan Bauer ebauer at physics.ucsb.edu
Mon Jul 15 22:36:08 EDT 2019


And if you haven’t worked with run_star_extras before, here’s a good introduction to that: https://jschwab.github.io/mesa-2018/#org496d7c7 <https://jschwab.github.io/mesa-2018/#org496d7c7>

Evan


> On Jul 15, 2019, at 7:34 PM, Evan Bauer <ebauer at physics.ucsb.edu> wrote:
> 
> Hi Joe,
> 
> It sounds like you’re looking for these:
> 
> extra params as a convenience for developing new features note: the parameter num_x_ctrls is defined in star_def.inc
> 
> x_ctrl(1:num_x_ctrls) = 0d0
> x_integer_ctrl(1:num_x_ctrls) = 0
> x_logical_ctrl(1:num_x_ctrls) = .false.
> You can assign values to those in your inlists and then access them in fortran code in run_star_extras.f with the star pointer,
> e.g. “s% x_ctrl(1)”.
> 
> Cheers,
> Evan
> 
> 
>> On Jul 15, 2019, at 7:01 PM, Joe Hellmers via Mesa-users <mesa-users at lists.mesastar.org <mailto:mesa-users at lists.mesastar.org>> wrote:
>> 
>> Hello MESA peoples!
>> 
>> I’m experimenting with adding some Fortran code, and I’d like to make so conditional logic based on an inlist entry to I create.
>> 
>> Are there directions for doing this?
>> 
>> Joe Hellmers
>> 
>> _______________________________________________
>> mesa-users at lists.mesastar.org <mailto:mesa-users at lists.mesastar.org>
>> https://lists.mesastar.org/mailman/listinfo/mesa-users
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20190715/545e80d7/attachment.html>


More information about the Mesa-users mailing list