Skip to content

Commit 519560b

Browse files
committed
merge main into branch
2 parents 7190be1 + 244c629 commit 519560b

30 files changed

+257
-109
lines changed

.github/workflows/build-linux.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,24 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
sdk: ["20.12.1", "21.4.1", "22.6.1"]
10+
sdk: ["21.4.1", "22.6.1", "23.7.3"]
1111

1212
runs-on: ubuntu-latest
1313

1414
steps:
1515
- name: Delete unused packages
1616
run: |
17-
# commands lifted from https://github.com/jlumbroso/free-disk-space
17+
# runners have 150GB of disk space and the Ubuntu image is big so we sometimes found it ran out of space for MESA
18+
# others have encountered this too so we took commands from this action
19+
# https://github.com/jlumbroso/free-disk-space
20+
# currently commented because we don't need it and these commands can need changing when the Ubuntu image changes
1821
sudo rm -rf /usr/local/lib/android
19-
sudo apt-get remove -y '^aspnetcore-.*'
20-
sudo apt-get remove -y '^dotnet-.*' # 990 MB
21-
sudo apt-get remove -y '^llvm-.*' # 1052 MB
22+
# sudo apt-get remove -y '^aspnetcore-.*'
23+
# sudo apt-get remove -y '^dotnet-.*' # 990 MB
24+
# sudo apt-get remove -y '^llvm-.*' # 1052 MB
2225
# sudo apt-get remove -y 'php.*' # 56.6 MB
2326
# sudo apt-get remove -y '^mysql-.*' # 209 MB
24-
sudo apt-get remove -y azure-cli google-cloud-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri # 2274 MB
27+
# sudo apt-get remove -y azure-cli google-cloud-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri # 2274 MB
2528
sudo apt-get autoremove -y # 771 MB
2629
sudo apt-get clean
2730
@@ -42,7 +45,7 @@ jobs:
4245
- name: Git LFS Pull
4346
run: git lfs pull
4447
if: steps.lfs-cache.outputs.cache-hit != 'true'
45-
48+
4649
- name: Git LFS Checkout
4750
run: git lfs checkout
4851
if: steps.lfs-cache.outputs.cache-hit == 'true'
@@ -61,12 +64,6 @@ jobs:
6164
key: ${{ runner.os }}-${{matrix.sdk}}
6265

6366

64-
- name: Get SDK ${{ runner.os }} '20.12.1'
65-
if: ${{ (steps.cache.outputs.cache-hit != 'true') && ( matrix.sdk == '20.12.1') }}
66-
run: |
67-
wget -q https://zenodo.org/record/4587206/files/mesasdk-x86_64-linux-20.12.1.tar.gz
68-
shell: bash
69-
7067
- name: Get SDK ${{ runner.os }} '21.4.1'
7168
if: ${{ (steps.cache.outputs.cache-hit != 'true') && ( matrix.sdk == '21.4.1') }}
7269
run: |
@@ -79,6 +76,12 @@ jobs:
7976
wget -q https://zenodo.org/record/7457681/files/mesasdk-x86_64-linux-22.6.1.tar.gz
8077
shell: bash
8178

79+
- name: Get SDK ${{ runner.os }} '23.7.3'
80+
if: ${{ (steps.cache.outputs.cache-hit != 'true') && ( matrix.sdk == '23.7.3') }}
81+
run: |
82+
wget -q https://zenodo.org/record/10624843/files/mesasdk-x86_64-linux-23.7.3.tar.gz
83+
shell: bash
84+
8285
- name: Unpack SDK ${{ runner.os }} ${{matrix.sdk}}
8386
run: |
8487
tar xvf mesasdk-x86_64-linux-${{matrix.sdk}}.tar.gz
@@ -87,10 +90,10 @@ jobs:
8790
- name: Compile
8891
shell: bash
8992
run: |
90-
# Linux runners have 2 cores
91-
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
92-
export OMP_NUM_THREADS=2
93-
export NPROCS=2
93+
# Linux runners have 4 cores
94+
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
95+
export OMP_NUM_THREADS=4
96+
export NPROCS=4
9497
export "MESASDK_ROOT=$(readlink -f mesasdk)"
9598
source "${MESASDK_ROOT}/bin/mesasdk_init.sh"
9699
export "MESA_DIR=$(readlink -f ./)"

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "MESA"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 11701
41+
PROJECT_NUMBER = r24.03.04
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

binary/defaults/binary_controls.defaults

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,6 @@
664664
! else
665665
! change_factor = change_factor*(1.0-implicit_lambda) &
666666
! + implicit_lambda*(1+change_factor_fraction*(mass_transfer_prev/mass_transfer_rate-1))
667-
! change_factor = change_factor*(1.0-implicit_lambda) &
668-
! + implicit_lambda*(1+change_factor_fraction*(mass_transfer_rate/mass_transfer_prev-1))
669667
! end if
670668

671669
! Choosing ``implicit_lambda = 0`` will keep the change factor constant.
@@ -1494,3 +1492,16 @@
14941492
use_other_CE_binary_evolve_step = .false.
14951493
use_other_CE_binary_finish_step = .false.
14961494
use_other_e2 = .false.
1495+
1496+
1497+
! extra params as a convenience for developing new features
1498+
! note: the parameter ``num_x_ctrls`` is defined in ``binary_def.f90``
1499+
1500+
! ::
1501+
1502+
x_ctrl(1:binary_num_x_ctrls) = 0d0
1503+
x_integer_ctrl(1:binary_num_x_ctrls) = 0
1504+
x_logical_ctrl(1:binary_num_x_ctrls) = .false.
1505+
x_character_ctrl(1:binary_num_x_ctrls) = ''
1506+
1507+

binary/private/binary_ctrls_io.f90

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,10 @@ module binary_ctrls_io
224224
use_other_CE_rlo_mdot, &
225225
use_other_CE_binary_evolve_step, &
226226
use_other_CE_binary_finish_step, &
227+
x_ctrl, &
228+
x_integer_ctrl, &
229+
x_logical_ctrl, &
230+
x_character_ctrl, &
227231

228232
! extra files
229233
read_extra_binary_controls_inlist, extra_binary_controls_inlist_name
@@ -530,6 +534,11 @@ subroutine store_binary_controls(b, ierr)
530534
b% use_other_CE_rlo_mdot = use_other_CE_rlo_mdot
531535
b% use_other_CE_binary_evolve_step = use_other_CE_binary_evolve_step
532536
b% use_other_CE_binary_finish_step = use_other_CE_binary_finish_step
537+
538+
b% x_ctrl = x_ctrl
539+
b% x_integer_ctrl = x_integer_ctrl
540+
b% x_logical_ctrl = x_logical_ctrl
541+
b% x_character_ctrl = x_character_ctrl
533542

534543
end subroutine store_binary_controls
535544

@@ -720,6 +729,11 @@ subroutine set_binary_controls_for_writing(b, ierr)
720729
use_other_CE_binary_evolve_step = b% use_other_CE_binary_evolve_step
721730
use_other_CE_binary_finish_step = b% use_other_CE_binary_finish_step
722731

732+
x_ctrl = b% x_ctrl
733+
x_integer_ctrl = b% x_integer_ctrl
734+
x_logical_ctrl = b% x_logical_ctrl
735+
x_character_ctrl = b% x_character_ctrl
736+
723737
end subroutine set_binary_controls_for_writing
724738

725739
subroutine write_binary_controls(io,ierr)

binary/private/run_binary_support.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,14 +643,14 @@ end subroutine extras_binary_controls
643643

644644
end do step_loop
645645

646+
partial_result = b% extras_binary_finish_step(b% binary_id)
647+
result = worst_result(result, partial_result)
648+
646649
if(result == keep_going) result = binary_finish_step(b)
647650
if (b% CE_flag .and. b% CE_init .and. result == keep_going) then
648651
result = worst_result(result, CE_binary_finish_step(b))
649652
end if
650653

651-
partial_result = b% extras_binary_finish_step(b% binary_id)
652-
result = worst_result(result, partial_result)
653-
654654
if (result == keep_going) then
655655
! write terminal info
656656
model = b% model_number

binary/public/binary_controls.inc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,9 @@ logical :: use_other_CE_binary_finish_step
177177
logical :: use_other_e2
178178
logical :: use_other_pgbinary_plots
179179

180+
real(dp) :: x_ctrl(binary_num_x_ctrls)
181+
integer :: x_integer_ctrl(binary_num_x_ctrls)
182+
logical :: x_logical_ctrl(binary_num_x_ctrls)
183+
character (len=strlen) :: x_character_ctrl(binary_num_x_ctrls)
184+
180185
! end of controls

binary/public/binary_def.f90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ module binary_def
3737

3838
integer, parameter :: maxlen_binary_history_column_name = 80
3939
integer, parameter :: binary_num_xtra_vals = 30
40+
integer, parameter :: binary_num_x_ctrls = 100
4041

4142
! time_step limit identifiers
4243
integer, parameter :: b_Tlim_comp = 1
9.4 KB
Loading

data/star_data/zams_models/HR.png

2.44 KB
Loading

data/star_data/zams_models/create_z2m2_y28/inlist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
&star_job
99

10-
mesa_dir = '../../../..'
10+
!mesa_dir = '../../../..'
1111

1212
read_extra_star_job_inlist(2) = .true.
1313
extra_star_job_inlist_name(2) = 'inlist_create_zams'

0 commit comments

Comments
 (0)