<div dir="ltr"><div>Hi Joe,</div><div><br></div><div>Let's say you wanted to add a new runtime parameter to the Sod simulation. You would need to:</div><div>1. Declare the fortran variable storing that runtime parameter value in a module file (usually: Simulation_data.F90)</div><div>2. Instruct a fortran subroutine to set your fortran variable based on the value in your parameter file (usually: Simulation_init.F90 for the subroutine and flash.par for the parameter file)</div><div>3. Actually have the runtime value (with a name matching the RuntimeParameters_get first argument) in flash.par</div><div>4. In order for RuntimeParameters_get to actually process flash.par for the requested parameter, it requires that parameter being set in Config (I'm not sure why this design choice was made but possibly there's a good reason for it; if you're curious you can take a look at nameValueLL_get.F90).</div><div><br></div><div>Long story short: you NEED runtime parameters present in both Config and flash.par.</div><div><br></div><div>Best wishes,</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">--------<div>Ryan</div></div></div></div></div></div></div><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, Jan 10, 2025 at 8:58 AM Joe Frisch <<a href="mailto:joseffrisch@google.com">joseffrisch@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I'm getting set up to use FLASH and looking at the Sod test problem.<div><br></div><div>sim_xangle and sim_yangle appear in both Config and in flash.par in the sod2 simulation directory. </div><div><br></div><div>It looks like flash.par from the Simulation/SimulationMain/Sod generates the final flash.par file in object, but are the same values in Simulation/SimulationMain/Sod/Config doing anything?</div><div>Should both config and flash.par be edited to change the angle?</div><div><br></div><div>In general what parameters go in Config vs flash.par?</div><div><br></div><div>--- Joe Frisch</div><div><br></div></div>
_______________________________________________<br>
flash-users mailing list<br>
<a href="mailto:flash-users@flash.rochester.edu" target="_blank">flash-users@flash.rochester.edu</a><br>
<br>
For list info, including unsubscribe:<br>
<a href="https://flash.rochester.edu/mailman/listinfo/flash-users" rel="noreferrer" target="_blank">https://flash.rochester.edu/mailman/listinfo/flash-users</a><br>
</blockquote></div>