mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Fixing compiler warning about VLA (Clang extension) (#3769)
This commit is contained in:
parent
b41e22f68b
commit
a22238e069
1 changed files with 4 additions and 4 deletions
|
|
@ -192,9 +192,9 @@ void synchronize_bank()
|
|||
// TODO: protect for MPI_Exscan at rank 0
|
||||
|
||||
// Allocate space for bank_position if this hasn't been done yet
|
||||
int64_t bank_position[mpi::n_procs];
|
||||
MPI_Allgather(
|
||||
&start, 1, MPI_INT64_T, bank_position, 1, MPI_INT64_T, mpi::intracomm);
|
||||
std::vector<int64_t> bank_position(mpi::n_procs);
|
||||
MPI_Allgather(&start, 1, MPI_INT64_T, bank_position.data(), 1, MPI_INT64_T,
|
||||
mpi::intracomm);
|
||||
#else
|
||||
start = 0;
|
||||
finish = index_temp;
|
||||
|
|
@ -289,7 +289,7 @@ void synchronize_bank()
|
|||
neighbor = mpi::n_procs - 1;
|
||||
} else {
|
||||
neighbor =
|
||||
upper_bound_index(bank_position, bank_position + mpi::n_procs, start);
|
||||
upper_bound_index(bank_position.begin(), bank_position.end(), start);
|
||||
}
|
||||
|
||||
// Resize IFP receive buffers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue