You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EIDOS_TERMINATION << "ERROR (Haplosome::PrintHaplosomes_SLiM): haplosomes being output must be visible in a subpopulation (i.e., may not belong to new juveniles)." << EidosTerminate();
if ((individual_index_long < 0) || (individual_index_long > SLIM_MAX_SUBPOP_SIZE))
1387
-
EIDOS_TERMINATION << "ERROR (Species::_InitializePopulationFromTextFile): individual index out of permitted range." << EidosTerminate();
1388
-
slim_popsize_t individual_index = static_cast<slim_popsize_t>(individual_index_long); // range-check is above since we need to check against SLIM_MAX_SUBPOP_SIZE
1397
+
if (individual_index_long > subpop->parent_subpop_size_)
1398
+
EIDOS_TERMINATION << "ERROR (Species::_InitializePopulationFromTextFile): referenced individual i" << individual_index_long << " is out of range." << EidosTerminate();
std::cout << "for chromosome index " << (unsignedint)chromosome_index << " individual identifier " << sub << " parsed to subpop id " << subpop_id << " and individual index " << individual_index << ", is_individual_index_repeat == " << is_individual_index_repeat << ", haplosome_index " << haplosome_index << std::endl;
1416
+
1417
+
if (haplosome.chromosome_index_ != chromosome->index_)
1418
+
EIDOS_TERMINATION << "ERROR (Species::_InitializePopulationFromTextFile): (internal error) haplosome does not belong to the focal chromosome." << EidosTerminate();
1419
+
1404
1420
if (iss >> sub)
1405
1421
{
1406
1422
// BCH 2/5/2025: We instantiate null haplosomes only where expect them to be, based upon
0 commit comments