Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoeprieto committed Sep 10, 2024
1 parent 201ca7f commit b108ec7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/simulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ void initialize_batch()
// Increment current batch
++simulation::current_batch;

if(settings::split_file_per_batch){
if (settings::split_file_per_batch) {
simulation::surf_source_bank.clear();
simulation::surf_source_bank.reserve(settings::max_surface_particles);
}
Expand Down Expand Up @@ -483,11 +483,9 @@ void finalize_batch()
} else {
write_source_point(filename.c_str(), surfbankspan, surf_work_index);
}
}
else if (settings::split_file_per_batch &&
simulation::current_batch >
(settings::n_batches - settings::n_surf_source_files))
{
} else if (settings::split_file_per_batch &&
simulation::current_batch >
(settings::n_batches - settings::n_surf_source_files)) {
auto filename = settings::path_output + "surface_source_batch_" +
std::to_string(simulation::current_batch);
auto surf_work_index = mpi::calculate_parallel_index_vector(
Expand Down

0 comments on commit b108ec7

Please sign in to comment.