[mesa-users] Inlist issue

Bill Wolf wmwolf at physics.ucsb.edu
Mon Jul 31 12:59:17 EDT 2017


But if you DO want inlist support for math, variables, and controls statements like if blocks and for loops, check out the MesaScript project, which aims to do exactly that for MESA star (and to a limited extent, MESA binary):

http://wmwolf.github.io/MesaScript/

other bill

________________________ 
William Wolf 
wmwolf at physics.ucsb.edu 

UCSB Department of Physics 

On July 31, 2017 at 9:55:28 AM, Bill Paxton (paxton at kitp.ucsb.edu) wrote:


On Jul 31, 2017, at 9:47 AM, Josiah Schwab wrote:

The first, and most important point is that you can't do math in
inlists

and don't blame me for that!  ;)   it is a limitation of the fortran runtime that reads the inlist.

it is not an interpreter that can parse and evaluate anything as complicated as "1 + 1".   

i've been tempted to replace inlists by a python script to be executed each time we currently read the inlist,
but that's too much baggage for now.   we're going to stick to the limited but simple fortran inlist scheme.

you just need to be aware of the limitations.    thanks to josiah and others for explaining this issue.

bill



------------------------------------------------------------------------------  
Check out the vibrant tech community on one of the world's most  
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________  
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/20170731/7c4fdb85/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
-------------- next part --------------
_______________________________________________
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