32 use sufr_kinds
, only: double
33 use sufr_constants
, only: set_sufr_constants, pi2,msun,julyear,solday,c3rd, pc_g,pc_c
34 use sufr_system
, only: syntax_quit
38 real(double) :: trl,m1,m2,pin,pf,cst
39 character :: tmpstr*(99)
42 narg = command_argument_count()
43 if(narg.eq.3.or.narg.eq.4)
then
44 call get_command_argument(1,tmpstr)
46 call get_command_argument(2,tmpstr)
48 call get_command_argument(3,tmpstr)
53 call get_command_argument(4,tmpstr)
57 call syntax_quit(
'<M1> <M2> <Pi> [<Pf>] (Mo and days, default Pf=0)',0, &
58 'This program calculates the time needed to reach a ceratain Porb with gravitational waves')
62 call set_sufr_constants()
64 cst = 5.d0/256.d0 * pi2**(-8.d0*c3rd) * pc_c**5 / pc_g**(5*c3rd) * (m1+m2)**c3rd/(m1*m2 * msun**(5*c3rd))
68 trl = ( pin**(8*c3rd) - pf**(8*c3rd) ) * cst/julyear
70 write(*,
'(A,ES15.7,A,/)')
' Time needed: ',trl,
' yr'
program gw_coalescence_time
Calculates the time needed to reach a certain Porb (default 0) using gravitational-wave evolution...