Skip to content

Commit a96eaba

Browse files
rjfarmerpmocz
authored andcommitted
Fix fpe in time smooth for ST
Time smoothing needs mstar_old but after a restart we have s% generations=0 so no _old values.
1 parent 4a096fd commit a96eaba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

star/private/photo_in.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ subroutine read_star_photo(s, fname, ierr)
148148
s% dq(1:nz), s% xa(:,1:nz), s% xh(:,1:nz), &
149149
s% omega(1:nz), s% j_rot(1:nz), s% mlt_vc(1:nz), s% conv_vel(1:nz), &
150150
s% D_ST_start(1:nz), s% nu_ST_start(1:nz), & ! needed for ST time smoothing
151-
s% have_ST_start_info
151+
s% have_ST_start_info, s% mstar_old ! needed for ST time smoothing
152152

153153
call read_part_number(iounit)
154154
if (failed('rsp_num_periods')) return

star/private/photo_out.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ subroutine output_star_photo(s,iounit,ierr)
8585
s% dq(1:nz), s% xa(:,1:nz), s% xh(:,1:nz), &
8686
s% omega(1:nz), s% j_rot(1:nz), s% mlt_vc(1:nz), s% conv_vel(1:nz), &
8787
s% D_ST_start(1:nz), s% nu_ST_start(1:nz), & ! needed for ST time smoothing
88-
s% have_ST_start_info
88+
s% have_ST_start_info, s% mstar_old ! needed for ST time smoothing
8989

9090
call write_part_number(iounit)
9191
write(iounit) &

star_data/public/star_data_def.inc

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

22
character(len=24) :: version_number ! mesa version from file $MESA_DIR/data/version_number
33

4-
integer, parameter :: star_def_version = 17
4+
integer, parameter :: star_def_version = 18
55

66
integer, parameter :: nz_alloc_extra = 200
77

0 commit comments

Comments
 (0)