@@ -381,7 +381,7 @@ void double_star::dump(ostream & s, bool brief) {
381381 << "\n " << identity
382382 << " " << bin_type
383383 << " " << binary_age
384- << " " << bin_type
384+ << " " << current_mass_transfer_type
385385 << " " << eccentricity
386386 << " " << get_period ()
387387 << " " << semi
@@ -1280,28 +1280,29 @@ void double_star::recursive_binary_evolution(real dt,
12801280
12811281 // Primary fills Roche-lobe?
12821282 if (rp >= rl_p ) {
1283- get_primary ()-> set_spec_type (Rl_filling );
1284- get_primary ()-> set_spec_type (Accreting , false);
1285- get_secondary ()-> set_spec_type (Accreting );
1283+ get_primary ()-> set_spec_type (Rl_filling );
1284+ get_primary ()-> set_spec_type (Accreting , false);
1285+ get_secondary ()-> set_spec_type (Accreting );
1286+ donor -> set_effective_radius (rl_p );
12861287 }
12871288 else
1288- get_primary ()-> set_spec_type (Rl_filling , false);
1289+ get_primary ()-> set_spec_type (Rl_filling , false);
12891290
12901291 if (rs >= rl_s ) {
12911292
1292- // secondary is donor
1293- donor = get_secondary ();
1294- accretor = get_primary ();
1295-
1296- get_secondary ()-> set_spec_type (Rl_filling );
1297- get_secondary ()-> set_spec_type (Accreting , false);
1298- get_primary ()-> set_spec_type (Accreting );
1293+ // secondary is donor
1294+ donor = get_secondary ();
1295+ accretor = get_primary ();
12991296
1300- // One could check here for contact binary to cause
1301- // the secondary to be the donor.
1297+ get_secondary ()-> set_spec_type (Rl_filling );
1298+ get_secondary ()-> set_spec_type (Accreting , false);
1299+ get_primary ()-> set_spec_type (Accreting );
1300+ donor -> set_effective_radius (rl_s );
1301+ // One could check here for contact binary to cause
1302+ // the secondary to be the donor.
13021303 }
13031304 else
1304- get_secondary ()-> set_spec_type (Rl_filling , false);
1305+ get_secondary ()-> set_spec_type (Rl_filling , false);
13051306
13061307
13071308// Determines if we really have to do with a mass
@@ -1333,7 +1334,7 @@ void double_star::recursive_binary_evolution(real dt,
13331334 // (SilT Nov 25 2012)
13341335 // Goes wrong when first stable mass transfer. Need to set in ::contact_binary...
13351336 // bin_type = Contact;
1336- // first_contact=true;
1337+ first_contact = true;
13371338
13381339 if (REPORT_RECURSIVE_EVOLUTION )
13391340 cerr << "\tFirst contact" << endl ;
@@ -1488,6 +1489,7 @@ void double_star::recursive_binary_evolution(real dt,
14881489 set_effective_radius (get_secondary ()-> get_radius ());
14891490
14901491 current_mass_transfer_type = Unknown ;
1492+ first_contact = false;
14911493
14921494 refresh_memory ();
14931495
0 commit comments