diff --git a/lib/evolve_discrete_demes/diploid_pop_fitness.cc b/lib/evolve_discrete_demes/diploid_pop_fitness.cc index 9397d9ddd..99333bc29 100644 --- a/lib/evolve_discrete_demes/diploid_pop_fitness.cc +++ b/lib/evolve_discrete_demes/diploid_pop_fitness.cc @@ -16,6 +16,7 @@ calculate_diploid_fitness( auto idx = deme_to_gvalue_map[offspring_metadata[i].deme]; //gvalue_pointers[idx]->operator()(rng, offspring_metadata[i].label, pop, // offspring_metadata[i]); + throw std::runtime_error("the parents are the ids here, not the labels."); gvalue_pointers[idx]->operator()(fwdpy11::DiploidGeneticValueData( rng, pop, pop.diploid_metadata[offspring_metadata[i].parents[0]], pop.diploid_metadata[offspring_metadata[i].parents[1]], i,