From: Bill W. <wm...@ph...> - 2017-07-31 16:59:26
|
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 wm...@ph... UCSB Department of Physics On July 31, 2017 at 9:55:28 AM, Bill Paxton (pa...@ki...) 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 mes...@li... https://lists.sourceforge.net/lists/listinfo/mesa-users |