From 05ce4d8fabbd57043ef916f03d6fc196dbea238f Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Fri, 12 Jul 2024 18:35:32 -0400 Subject: [PATCH] silly --- CMakeLists.txt | 2 +- include/blt/gp/program.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fef4c80..aa517e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(blt-gp VERSION 0.0.65) +project(blt-gp VERSION 0.0.66) include(CTest) diff --git a/include/blt/gp/program.h b/include/blt/gp/program.h index 7977938..81c8a22 100644 --- a/include/blt/gp/program.h +++ b/include/blt/gp/program.h @@ -309,7 +309,11 @@ namespace blt::gp } while (!thread_helper.evaluation_left.compare_exchange_weak(end, end - size, std::memory_order::memory_order_release, std::memory_order::memory_order_acquire)); - + + auto old_begin = begin; + begin = config.population_size - end; + end = config.population_size - old_begin; + for (blt::size_t i = begin; i < end; i++) { auto& ind = current_pop.get_individuals()[i];