Skip to content

Commit f07b4e4

Browse files
committed
minor style issues with labelling exit and cycle
1 parent 6c3a3e4 commit f07b4e4

File tree

18 files changed

+46
-46
lines changed

18 files changed

+46
-46
lines changed

data/star_data/zams_models/create_z2m2_y28/src/run_star_extras.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ subroutine do_create_zams( &
177177
if (init_m > 1) s% mesh_delta_coeff = 0.8d0
178178
if (init_m > 80) s% mesh_delta_coeff = 1
179179

180-
if (init_m > exp10(mhi)) exit
180+
if (init_m > exp10(mhi)) exit mass_loop
181181
do j=1, 10
182182
write(*, *)
183183
end do
@@ -196,13 +196,13 @@ subroutine do_create_zams( &
196196
s% job% initial_zfracs, &
197197
s% job% dump_missing_metals_into_heaviest, &
198198
.false., '', s% job% pre_ms_relax_num_steps, ierr)
199-
if (failed('star_create_pre_ms_model')) exit
199+
if (failed('star_create_pre_ms_model')) exit mass_loop
200200

201201
call evolve_to_zams(s, id, ierr)
202-
if (failed('evolve_to_zams')) exit
202+
if (failed('evolve_to_zams')) exit mass_loop
203203

204204
call write_model(id, io_ms_mod, io_ms_index, ierr)
205-
if (failed('write_model')) exit
205+
if (failed('write_model')) exit mass_loop
206206

207207
end do mass_loop
208208

kap/test/src/sample_kap.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,4 @@ program sample_kap
223223
3 format(a28,99(a26,1x))
224224
4 format(i28,99(1pes26.16e3,1x))
225225

226-
end program
226+
end program sample_kap

kap/test/src/test_kap_quietly.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ program test_kap_quietly
55

66
call Do_One(.true.)
77

8-
end
8+
end program test_kap_quietly
99

mtx/private/bcyclic.f90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ subroutine bcyclic_factor ( &
129129
return
130130
end if
131131

132-
if (nstemp == 1) exit
132+
if (nstemp == 1) exit factor_cycle
133133

134134
nstemp = (nstemp+1)/2
135135
nlevel = nlevel+1
136136
ncycle = 2*ncycle
137137

138-
if (nlevel > maxlevels) exit
138+
if (nlevel > maxlevels) exit factor_cycle
139139

140140
end do factor_cycle
141141

@@ -222,13 +222,13 @@ subroutine bcyclic_solve ( &
222222
return
223223
end if
224224

225-
if (nstemp == 1) exit
225+
if (nstemp == 1) exit forward_cycle
226226

227227
nstemp = (nstemp+1)/2
228228
nlevel = nlevel+1
229229
ncycle = 2*ncycle
230230

231-
if (nlevel > maxlevels) exit
231+
if (nlevel > maxlevels) exit forward_cycle
232232

233233
end do forward_cycle
234234

@@ -250,7 +250,7 @@ subroutine bcyclic_solve ( &
250250
nlevel = nlevel-1
251251
if (nlevel < 1) then
252252
ierr = -1
253-
exit
253+
exit back_cycle
254254
end if
255255
nstemp = nslevel(nlevel)
256256
call cycle_solve( &

rates/private/load_weak.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ subroutine load_user_weak_tables(ierr)
516516

517517
rate_loop: do
518518
t = token(iounit, n, i, buffer, rate_name)
519-
if (t == eof_token) exit
519+
if (t == eof_token) exit rate_loop
520520
if (t /= name_token) then
521521
call error; return
522522
end if

rates/private/rates_initialize.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ subroutine init_raw_rates_records(ierr)
567567

568568
rate_loop: do
569569
t = token(iounit, n, i, buffer, rate_name)
570-
if (t == eof_token) exit
570+
if (t == eof_token) exit rate_loop
571571
if (t /= name_token) then
572572
call error; return
573573
end if

rates/private/reaclib_input.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ subroutine extract_rates_from_reaclib(reaclib,nreaclib,nuclides,rates,set,use_we
322322
l = get_nuclide_index_in_set(reaclib% species(j,i),set)
323323
if (l == nuclide_not_found) then
324324
include_this_rate = .false.
325-
exit
325+
exit loop_over_nuclides
326326
else
327327
pspecies(j) = l
328328
end if
@@ -369,7 +369,7 @@ subroutine extract_rates_from_reaclib(reaclib,nreaclib,nuclides,rates,set,use_we
369369
write(*,*) 'failed to find', indx
370370
call mesa_error(__FILE__,__LINE__)
371371
end if
372-
cycle
372+
cycle loop_over_rates
373373
end if
374374
end if
375375
count = count + 1

rates/private/reaclib_support.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ subroutine compute_rev_ratio(rates,winvn)
205205
rates% inverse_coefficients(:,i) = (/-huge(1d0), 0d0/)
206206
rates% inverse_exp(i) = 0d0
207207
rates% inverse_part(:,i) = 1d0
208-
cycle
208+
cycle loop_over_rates
209209
end if
210210
Ni = Nin(rates% chapter(i))
211211
No = Nout(rates% chapter(i))

rates/public/rates_def.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ subroutine create_skip_warnings_dict(ierr)
954954

955955
reaction_loop: do
956956
t = token(iounit, n, i, buffer, string)
957-
if (t == eof_token) exit
957+
if (t == eof_token) exit reaction_loop
958958
if (t /= name_token) then
959959
call error; return
960960
end if

star/job/run_star_support.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ logical function do_evolve_one_step(s, dbg, ierr) result(continue_evolve_loop)
208208
if (stop_is_requested(s)) then
209209
continue_evolve_loop = .false.
210210
result = terminate
211-
exit
211+
exit step_loop
212212
end if
213213

214214
result = star_evolve_step(id, first_try)

0 commit comments

Comments
 (0)