@@ -218,6 +218,7 @@ SUBROUTINE evolv2(kstar,mass,tb,ecc,z,tphysf,
218
218
*
219
219
REAL * 8 qc_fixed
220
220
LOGICAL switchedCE,disrupt
221
+ integer err
221
222
222
223
Cf2py intent (in ) kstar
223
224
Cf2py intent (in ) mass
@@ -255,8 +256,6 @@ SUBROUTINE evolv2(kstar,mass,tb,ecc,z,tphysf,
255
256
endif
256
257
257
258
if (using_METISSE) CALL initialize_front_end(' cosmic' )
258
- if (using_METISSE) call allocate_track(2 ,mass0)
259
-
260
259
*
261
260
* Save the initial state.
262
261
*
@@ -340,10 +339,20 @@ SUBROUTINE evolv2(kstar,mass,tb,ecc,z,tphysf,
340
339
*
341
340
* Set the collision matrix.
342
341
*
342
+ err = 0
343
343
if(using_cmc.eq.0)then
344
344
* for SSE path_to_tracks and path_to_he_tracks are empty ('')
345
345
CALL zcnsts(z,zpars,path_to_tracks,path_to_he_tracks)
346
+ if(using_METISSE) then
347
+ call check_error(err)
348
+ if (err>0) then
349
+ bpp_index_out = -1
350
+ return
351
+ endif
352
+ endif
346
353
endif
354
+
355
+ if(using_METISSE) call allocate_track(2,mass0)
347
356
348
357
kmin = 1
349
358
kmax = 2
@@ -4405,6 +4414,10 @@ SUBROUTINE evolv2(kstar,mass,tb,ecc,z,tphysf,
4405
4414
evolve_type = 10.0
4406
4415
!added by PA for systems that stop evolving halfway
4407
4416
if(iter.ge.loop) evolve_type = 100.0
4417
+ if (using_METISSE) then
4418
+ call check_error(err)
4419
+ if (err>0) evolve_type = 101.0
4420
+ end if
4408
4421
rrl1 = rad(1)/rol(1)
4409
4422
rrl2 = rad(2)/rol(2)
4410
4423
teff1 = 1000.d0*((1130.d0*lumin(1)/
@@ -4537,6 +4550,7 @@ SUBROUTINE evolv2(kstar,mass,tb,ecc,z,tphysf,
4537
4550
* CALL exit(0)
4538
4551
* STOP
4539
4552
endif
4553
+
4540
4554
bcm(ip+1,1) = -1.0
4541
4555
bpp(jp+1,1) = -1.0
4542
4556
@@ -4546,6 +4560,7 @@ SUBROUTINE evolv2(kstar,mass,tb,ecc,z,tphysf,
4546
4560
kick_info_out = kick_info
4547
4561
endif
4548
4562
if (using_METISSE) call dealloc_track()
4563
+
4549
4564
*
4550
4565
4551
4566
END SUBROUTINE evolv2
0 commit comments