Skip to content

Commit 87cdea1

Browse files
committed
stop --> mesa_error
1 parent a02c15c commit 87cdea1

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

num/private/mod_newton.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,11 +639,11 @@ subroutine do_newton(nz, nvar, x1, xold1, AF1, ldAF, neq, matrix_type, mljac, mu
639639
exit
640640
end if
641641
if (is_bad(residual_norm)) then
642-
call oops('residual_norm is a a bad number (NaN or Infinity)')
642+
call oops('residual_norm is a bad number (NaN or Infinity)')
643643
exit
644644
end if
645645
if (is_bad(max_residual)) then
646-
call oops('max_residual is a a bad number (NaN or Infinity)')
646+
call oops('max_residual is a bad number (NaN or Infinity)')
647647
exit
648648
end if
649649
residual_norm = abs(residual_norm)

star/private/conv_premix.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ subroutine create_zone_info_ (s, kc_t, kc_b, zi)
731731
if (in_conv .AND. s%mlt_mixing_type(kf) /= convective_mixing) then
732732

733733
! Transitioning out of a convective zone; complete
734-
! definition of new zone info and add to to the table
734+
! definition of new zone info and add to the table
735735

736736
zi_new%kc_t = kf
737737
zi_new%vc_t = s%mlt_vc(kf+1)

star/private/diffusion_procs.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ subroutine set1_g_rad_mombarg( &
14471447
return
14481448
end if
14491449

1450-
if (ierr /= 0) stop 'set1_g_rad' !return
1450+
if (ierr /= 0) call mesa_error(__FILE__,__LINE__,'set1_g_rad') !return
14511451

14521452
do ii = 1, 17 !kk
14531453
do i = 1, nc

star/private/evolve_support.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ subroutine set_current_to_old(s)
197197
call set_qs(s, s% nz, s% q, s% dq, ierr)
198198
if (ierr /= 0) then
199199
write(*,*) 'set_current_to_old failed in set_qs'
200-
stop
200+
call mesa_error(__FILE__,__LINE__,'set_current_to_old')
201201
end if
202202
call set_m_and_dm(s)
203203
call set_dm_bar(s, s% nz, s% dm, s% dm_bar)
@@ -212,7 +212,7 @@ subroutine set_current_to_old(s)
212212
if (is_bad_num(s% omega(k)) .or. abs(s% omega(k)) > 1d50) then
213213
if (s% stop_for_bad_nums) then
214214
write(*,2) 's% omega(k)', k, s% omega(k)
215-
stop 'set_current_to_old'
215+
call mesa_error(__FILE__,__LINE__,'set_current_to_old')
216216
end if
217217
end if
218218
end do

star/private/mesh_adjust.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,14 +344,14 @@ subroutine do_mesh_adjust( &
344344
density_new, energy_new, op_err)
345345
if (op_err /= 0) then
346346
write(*,2) 'failed for do1_lnT', k
347-
stop
348347
write(message,*) 'do1_lnT for k', k
349348
ierr = op_err
349+
call mesa_error(__FILE__,__LINE__,'mesh adjust: do1_lnT')
350350
end if
351351
if (is_bad(energy_new(k)) .or. is_bad(dq(k))) then
352352
write(*,2) 'energy_new', k, energy_new(k)
353353
write(*,2) 'dq', k, dq(k)
354-
stop ''
354+
call mesa_error(__FILE__,__LINE__,'mesh adjust: bad energy_new or dq')
355355
end if
356356

357357
end do

star/private/rsp_def.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ module rsp_def
101101
real(dp), pointer :: xa(:)
102102
real(dp) :: X, Z, Y, abar, zbar, z53bar, XC, XN, XO, Xne
103103

104-
! these for for rsp.f90 period and work calculations
104+
! these are for rsp.f90 period and work calculations
105105
real(dp) :: ETOT, EGRV, ETHE, EKIN, EDE_start, ECON, &
106106
TE, ELSTA, TEFF, E0, TT1, TE_start, T0, UN, ULL, &
107107
VMAX, RMAX, LMAX, LMIN, EKMAX, EKMIN, EKMAXL, EKDEL, &

star/private/star_solver.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ subroutine do_solver_work
465465
end if
466466

467467
if (is_bad_num(residual_norm)) then
468-
call oops('residual_norm is a a bad number (NaN or Infinity)')
468+
call oops('residual_norm is a bad number (NaN or Infinity)')
469469
if (s% stop_for_bad_nums) then
470470
write(*,1) 'residual_norm', residual_norm
471471
call mesa_error(__FILE__,__LINE__,'solver')
@@ -474,7 +474,7 @@ subroutine do_solver_work
474474
end if
475475

476476
if (is_bad_num(max_residual)) then
477-
call oops('max_residual is a a bad number (NaN or Infinity)')
477+
call oops('max_residual is a bad number (NaN or Infinity)')
478478
if (s% stop_for_bad_nums) then
479479
write(*,1) 'max_residual', max_residual
480480
call mesa_error(__FILE__,__LINE__,'solver')

0 commit comments

Comments
 (0)