From 7721bc1830bfcb2ca9b2d7ee52f9189813d14f7a Mon Sep 17 00:00:00 2001 From: Yohai Meiron Date: Sat, 14 Mar 2020 16:50:40 -0400 Subject: [PATCH] Minor edits --- phigrape.cpp | 96 ++++++++-------------------------------------------- 1 file changed, 15 insertions(+), 81 deletions(-) diff --git a/phigrape.cpp b/phigrape.cpp index 82547ad..905655e 100644 --- a/phigrape.cpp +++ b/phigrape.cpp @@ -299,7 +299,7 @@ double dt_disk, dt_contr, t_disk=0.0, t_contr=0.0, dtinv, dt2inv, dt3inv, a0mia1, ad04plad12, ad0plad1, a1abs, adot1abs, a2dot1abs, a3dot1abs, - Timesteps=0.0, n_act_sum=0.0, n_act_distr[N_MAX], g6_calls=0.0, g6_calls_sum=0.0, + timesteps=0.0, n_act_sum=0.0, n_act_distr[N_MAX], g6_calls=0.0, g6_calls_sum=0.0, tmp, tmp_r, tmp_v, tmp_rv, tmp_cpu, tmp_pot, tmp_a, tmp_adot, tmp_a_bh, tmp_adot_bh, @@ -537,20 +537,6 @@ return - 0 if everything OK #endif -/* RAND_MAX = 2147483647 */ -/* my_rand : 0.0 - 1.0 */ -/* my_rand2 : -1.0 - 1.0 */ - -double my_rand(void) -{ -return((double)(rand()/(double)RAND_MAX) ); -} - -double my_rand2(void) -{ -return (double)(2.0)*((rand() - RAND_MAX/2)/(double)RAND_MAX); -} - #ifdef ETICS double t_exp, dt_exp=ETICS_DTSCF; // t_exp is just the initial value #ifdef ETICS_CEP @@ -1557,53 +1543,6 @@ for (i=0; i