remove gsl-lite dependency (#3225)

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Gavin Ridley 2025-02-19 19:03:20 -06:00 committed by GitHub
parent bcc2a4c5f0
commit aa4de82258
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
72 changed files with 458 additions and 247 deletions

View file

@ -439,7 +439,7 @@ void finalize_batch()
int w = std::to_string(settings::n_max_batches).size();
std::string source_point_filename = fmt::format("{0}source.{1:0{2}}",
settings::path_output, simulation::current_batch, w);
gsl::span<SourceSite> bankspan(simulation::source_bank);
span<SourceSite> bankspan(simulation::source_bank);
write_source_point(source_point_filename, bankspan,
simulation::work_index, settings::source_mcpl_write);
}
@ -447,7 +447,7 @@ void finalize_batch()
// Write a continously-overwritten source point if requested.
if (settings::source_latest) {
auto filename = settings::path_output + "source";
gsl::span<SourceSite> bankspan(simulation::source_bank);
span<SourceSite> bankspan(simulation::source_bank);
write_source_point(filename, bankspan, simulation::work_index,
settings::source_mcpl_write);
}
@ -469,7 +469,7 @@ void finalize_batch()
// Get span of source bank and calculate parallel index vector
auto surf_work_index = mpi::calculate_parallel_index_vector(
simulation::surf_source_bank.size());
gsl::span<SourceSite> surfbankspan(simulation::surf_source_bank.begin(),
span<SourceSite> surfbankspan(simulation::surf_source_bank.begin(),
simulation::surf_source_bank.size());
// Write surface source file