From 289f39c43b298fae5899c05c604e734a45259c92 Mon Sep 17 00:00:00 2001 From: Daniel Holladay Date: Thu, 23 Mar 2023 14:49:37 -0600 Subject: [PATCH 01/45] Initial commit on splitting out get_sg_eos to a separate compilation unit. This is the first step to moving that code out of sg-eos. --- singularity-eos/CMakeLists.txt | 6 +- singularity-eos/eos/eos.hpp | 2 +- singularity-eos/eos/eos_eospac.hpp | 2 +- singularity-eos/eos/get_sg_eos.cpp | 599 ++++++++++++++++++++++++ singularity-eos/eos/singularity_eos.cpp | 590 +---------------------- 5 files changed, 608 insertions(+), 591 deletions(-) create mode 100644 singularity-eos/eos/get_sg_eos.cpp diff --git a/singularity-eos/CMakeLists.txt b/singularity-eos/CMakeLists.txt index cff8cba22b..4d7b801055 100644 --- a/singularity-eos/CMakeLists.txt +++ b/singularity-eos/CMakeLists.txt @@ -41,12 +41,14 @@ set(EOS_SRCS ) if (SINGULARITY_BUILD_CLOSURE) - list(APPEND EOS_SRCS eos/singularity_eos.cpp) - list(APPEND EOS_HEADERS eos/singularity_eos.hpp closure/mixed_cell_models.hpp) + list(APPEND EOS_SRCS eos/get_sg_eos.cpp) + list(APPEND EOS_HEADERS closure/mixed_cell_models.hpp) endif() if (SINGULARITY_USE_FORTRAN) list(APPEND EOS_SRCS eos/singularity_eos.f90) + list(APPEND EOS_SRCS eos/singularity_eos.cpp) + list(APPEND EOS_HEADERS eos/singularity_eos.hpp) # would rather handle this more robustly, being sloppy for now list(APPEND EOS_MODS singularity_eos.mod singularity_eos_types.mod) endif() diff --git a/singularity-eos/eos/eos.hpp b/singularity-eos/eos/eos.hpp index bd6b2ff206..db4a6924d1 100644 --- a/singularity-eos/eos/eos.hpp +++ b/singularity-eos/eos/eos.hpp @@ -54,7 +54,7 @@ namespace singularity { template using tl = singularity::detail::type_list; -template