Silence variable array warnings

Dieser Commit ist enthalten in:
Brandon Potter committed 2024-07-11 13:50:11 -07:00
1 Ursprung ffc7aa468d
Commit 719ee21da7
2 Dateien geändert
+36 -34

Keine Dateien entsprechen Ihrer Suche

+2 -2
Datei anzeigen
@@ -120,7 +120,7 @@ __host__ MPI_Comm HostInterface::get_mpi_comm(int pe_start, int log_pe_stride,
/*
* If there is not one cached, create a new one (expensive)
*/
int active_set_ranks[pe_size]; // NOLINT
std::vector<int> active_set_ranks(pe_size);
int stride{1 << log_pe_stride};
active_set_ranks[0] = pe_start;
@@ -133,7 +133,7 @@ __host__ MPI_Comm HostInterface::get_mpi_comm(int pe_start, int log_pe_stride,
MPI_Comm_group(host_comm_world_, &comm_world_group);
MPI_Group_incl(comm_world_group, pe_size, active_set_ranks,
MPI_Group_incl(comm_world_group, pe_size, active_set_ranks.data(),
&active_set_group);
MPI_Comm_create_group(host_comm_world_, active_set_group, 0,