[Mesa-users] Adjusting Initial Parameters in make_pre_ccsn_iip

Francis Timmes fxt44 at mac.com
Sun May 9 20:34:12 UTC 2021


hi vanessa,

return the ./rn script to its original state.

for continuous integration purposes (i.e., frequent testing) 
certain phases of evolution are skipped to reduce the time it 
takes to test a mesa developers change. in this case, the 
pre-ms stage is skipped, which is why the mass does not change 
even though you change it in inlist_mass_Z_wind_rotation.

if you set the environment variable (assuming a bash shell)

export MESA_RUN_OPTIONAL=1

the original ./rn script will then run all the inlists, 
and thus pick up the mass change in inlist_mass_Z_wind_rotation .

fxt







> On May 7, 2021, at 11:56 PM, Parts, Vaughn via Mesa-users <mesa-users at lists.mesastar.org> wrote:
> 
> Hello MESA team,
> I am having difficulty adjusting the initial parameters in the make_pre_ccsn_iip module in star/test_suite, and I am hoping that you can help me figure out what to do. I want to change the star’s initial mass to 30 solar masses. I first went into the inlist_mass_Z_wind_rotation file and under the &controls section changed initial_mass to 30. However, this did not change anything when I actually ran the model, which seemed to be because the rn script starts off with a pre-made model if the string MESA_RUN_OPTIONAL exists somewhere. I could not find where that string appears in order to delete it and force MESA to run the module from the late pre-ZAMS stage, so instead I commented out the if statement in order to only run the “else” portion. My rn script now looks like this:
> 
> 
> 
> #!/bin/bash
> 
> # this provides the definition of do_one (run one part of test)
> # do_one [inlist] [output model] [LOGS directory]
> MESA_DIR=../../..
> source "${MESA_DIR}/star/test_suite/test_suite_helpers"
> 
> date "+DATE: %Y-%m-%d%nTIME: %H:%M:%S"
> 
> #if [ -z "$MESA_RUN_OPTIONAL" ]; then
> #   cp standard_late_pre_zams.mod late_pre_zams.mod
> #else
> do_one inlist_make_late_pre_zams_header late_pre_zams.mod LOGS_to_late_pre_zams
> cp late_pre_zams.mod standard_late_pre_zams.mod
> #fi
> 
> #if [ -z "$MESA_RUN_OPTIONAL" ]; then
> #   cp standard_start_core_collapse.mod start_core_collapse.mod
> #else
> do_one inlist_to_start_core_collapse_header start_core_collapse.mod LOGS_to_start_core_collapse
> cp start_core_collapse.mod standard_start_core_collapse.mod
> #fi
> 
> do_one inlist_finish_core_collapse_header final.mod LOGS_to_finish
> 
> date "+DATE: %Y-%m-%d%nTIME: %H:%M:%S"
> 
> echo ‘finished’
> 
> 
> 
> When I try to run the module like this, I get the following error:
> 
> 
> 
> Failed while trying to read pgstar namelist file: inlist_make_late_pre_zams
> Perhaps the following runtime error message will help you find the problem.
> 
> At line 3075 of file ../private/pgstar_ctrls_io.f90
> Fortran runtime error: End of file
> 
> 
> 
> Could you offer advice on how I should adjust the star’s initial mass without breaking the code?
> Thank you,
> Vanessa
> (they/she)
> _______________________________________________
> mesa-users at lists.mesastar.org
> https://lists.mesastar.org/mailman/listinfo/mesa-users
> 



More information about the Mesa-users mailing list