Skip to content

Commit ddad512

Browse files
committed
update changelog with another helper script
1 parent b71b953 commit ddad512

File tree

2 files changed

+38
-26
lines changed

2 files changed

+38
-26
lines changed

docs/source/changelog.rst

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,6 @@ Changes in main
1313
Backwards-incompatible changes
1414
------------------------------
1515

16-
Renamed controls for upper limits
17-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18-
19-
The following controls in ``&controls`` for upper limits on
20-
`when to stop <reference/controls.html#when-to-stop>`_ have
21-
been renamed:
22-
23-
+------------------------------+------------------------------------+
24-
+ Old + New +
25-
+==============================+====================================+
26-
+ + +
27-
+ ``log_center_density_limit`` + ``log_center_density_upper_limit`` +
28-
+ + +
29-
+ ``log_center_temp_limit`` + ``log_center_temp_upper_limit`` +
30-
+ + +
31-
+ ``center_entropy_limit`` + ``center_entropy_upper_limit`` +
32-
+ + +
33-
+ ``max_entropy_limit`` + ``max_entropy_upper_limit`` +
34-
+ + +
35-
+------------------------------+------------------------------------+
36-
37-
You can substitute the new names for the old ones using the command
38-
line tool ``sed`` with, e.g. ::
39-
40-
$ sed 's/log_center_density_limit/log_center_density_upper_limit' -i <inlist_filename>
41-
4216
Extra inlist controls are now arrays
4317
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4418

@@ -70,6 +44,37 @@ This will *replace* the file ``inlist_name``. Omit the ``-i`` flag if you'd
7044
like to see the changes without modifying the file.
7145

7246
``sed`` is a standard tool that is included with macOS and most Linux distributions.
47+
For convenience, we have also included a bash script that will call a version of
48+
this ``sed`` command (along with ``sed`` commands for the next changlog entry as well)
49+
to update all inlist files (``inlist*``), which you can run in any work directory
50+
where you want to update every inlist by invoking ::
51+
$MESA_DIR/scripts/update_inlists
52+
53+
Renamed controls for upper limits
54+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55+
56+
The following controls in ``&controls`` for upper limits on
57+
`when to stop <reference/controls.html#when-to-stop>`_ have
58+
been renamed:
59+
60+
+------------------------------+------------------------------------+
61+
+ Old + New +
62+
+==============================+====================================+
63+
+ + +
64+
+ ``log_center_density_limit`` + ``log_center_density_upper_limit`` +
65+
+ + +
66+
+ ``log_center_temp_limit`` + ``log_center_temp_upper_limit`` +
67+
+ + +
68+
+ ``center_entropy_limit`` + ``center_entropy_upper_limit`` +
69+
+ + +
70+
+ ``max_entropy_limit`` + ``max_entropy_upper_limit`` +
71+
+ + +
72+
+------------------------------+------------------------------------+
73+
74+
You can substitute the new names for the old ones using the command
75+
line tool ``sed`` with, e.g. ::
76+
77+
$ sed 's/log_center_density_limit/log_center_density_upper_limit/' -i <inlist_filename>
7378

7479
Abundance-based timestep controls are now arrays
7580
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

scripts/update_inlists

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
sed 's/log_center_density_limit/log_center_density_upper_limit/' -i inlist*
4+
sed 's/log_center_temp_limit/log_center_temp_upper_limit/' -i inlist*
5+
sed 's/center_entropy_limit/center_entropy_upper_limit/' -i inlist*
6+
sed 's/max_entropy_limit/max_entropy_upper_limit/' -i inlist*
7+
sed -E '/inlist[1-5]/s/([1-5])([_a-z]*) =/\2\(\1\) =/' -i inlist*

0 commit comments

Comments
 (0)