WSL/SLF GitLab Repository

Commit c969af02 authored by Nander Wever's avatar Nander Wever
Browse files

Some grids that are processed by getGrid (TOP_ALB for example) need to be...

Some grids that are processed by getGrid (TOP_ALB for example) need to be available at all processes, so making that the default. It will be good to keep the Reduce vs Allreduce option in the code, for future use.
parent 60277f6e
...@@ -792,7 +792,7 @@ mio::Grid2DObject SnowpackInterface::getGrid(const SnGrids::Parameters& param) c ...@@ -792,7 +792,7 @@ mio::Grid2DObject SnowpackInterface::getGrid(const SnGrids::Parameters& param) c
} }
o_grid2D.grid2D.fill(tmp_grid2D.grid2D, mpi_offset, 0, mpi_nx, dimy); o_grid2D.grid2D.fill(tmp_grid2D.grid2D, mpi_offset, 0, mpi_nx, dimy);
MPIControl::instance().reduce_sum(o_grid2D, false); MPIControl::instance().reduce_sum(o_grid2D);
//with some MPI implementations, when transfering large amounts of data, the buffers might get full and lead to a crash //with some MPI implementations, when transfering large amounts of data, the buffers might get full and lead to a crash
if (errCount>0) { if (errCount>0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment