Skip to content

Commit 04e4de4

Browse files
committed
[ci skip] update inlist script to backup the inlists before changing them
1 parent ddad512 commit 04e4de4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/source/changelog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ to update all inlist files (``inlist*``), which you can run in any work director
5050
where you want to update every inlist by invoking ::
5151
$MESA_DIR/scripts/update_inlists
5252

53+
This script will save the previous versions of your inlists to a directory named
54+
``backup_inlists``.
55+
5356
Renamed controls for upper limits
5457
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5558

scripts/update_inlists

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
mkdir backup_inlists
4+
cp inlist* backup_inlists
35
sed 's/log_center_density_limit/log_center_density_upper_limit/' -i inlist*
46
sed 's/log_center_temp_limit/log_center_temp_upper_limit/' -i inlist*
57
sed 's/center_entropy_limit/center_entropy_upper_limit/' -i inlist*

0 commit comments

Comments
 (0)