Skip to content

Commit 44b16a7

Browse files
committed
moved path/to/tracks to zcnsts
1 parent a12784c commit 44b16a7

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

src/cosmic/src/evolv2.f

+5-9
Original file line numberDiff line numberDiff line change
@@ -254,17 +254,13 @@ SUBROUTINE evolv2(kstar,mass,tb,ecc,z,tphysf,
254254

255255

256256

257-
if(using_METISSE) CALL initialize_front_end('cosmic',
258-
& path_to_tracks,path_to_he_tracks)
259-
CALL zcnsts(z,zpars)
257+
if(using_METISSE) CALL initialize_front_end('cosmic')
258+
* for SSE path_to_tracks and path_to_he_tracks are empty ('')
259+
CALL zcnsts(z,zpars,path_to_tracks,path_to_he_tracks)
260260

261261
if(using_METISSE) call allocate_track(2,mass0)
262262
irecord = 1
263-
* irecord is useful for evolv1.f but serves no purpose here
264-
265-
if(using_cmc.eq.0)then
266-
CALL instar
267-
endif
263+
* irecord is useful for evolv1.f but serves no purpose here
268264

269265
*
270266
* Save the initial state.
@@ -350,7 +346,7 @@ SUBROUTINE evolv2(kstar,mass,tb,ecc,z,tphysf,
350346
* Set the collision matrix.
351347
*
352348
if(using_cmc.eq.0)then
353-
CALL zcnsts(z,zpars)
349+
CALL instar
354350
endif
355351
356352
kmin = 1

src/cosmic/src/zcnsts.f

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
SUBROUTINE zcnsts(z,zpars)
1+
SUBROUTINE zcnsts(z,zpars,path_to_tracks,path_to_he_tracks)
22
IMPLICIT NONE
33
INCLUDE 'const_bse.h'
44

55
real*8 z,zpars(20)
6-
6+
CHARACTER*256 path_to_tracks,path_to_he_tracks
7+
8+
79
if (using_METISSE) then
810
!WRITE(*,*) 'Calling METISSE_zcnsts',using_METISSE
911
!SSE_zcnsts also sets some coefficients used in gntage
1012
!updating gntage for METISSE will remove the need to call this
1113
CALL SSE_zcnsts(z,zpars)
12-
CALL METISSE_zcnsts(z,zpars)
14+
CALL METISSE_zcnsts(z,zpars,path_to_tracks,path_to_he_tracks)
1315

1416
elseif (using_SSE) then
1517
!WRITE(*,*) 'Calling SSE_zcnsts'

0 commit comments

Comments
 (0)