WSL/SLF GitLab Repository

Commit 4ada666a authored by Nander Wever's avatar Nander Wever
Browse files

Not sure if those grids from ebalance require Allreduce or reduce. Falling back to default.

parent 0b2eaf9b
...@@ -151,9 +151,9 @@ void EnergyBalance::setMeteo(const mio::Grid2DObject& in_ilwr, ...@@ -151,9 +151,9 @@ void EnergyBalance::setMeteo(const mio::Grid2DObject& in_ilwr,
diffuse.fill(band_diffuse, startx, 0, nx, dimy); diffuse.fill(band_diffuse, startx, 0, nx, dimy);
direct_unshaded_horizontal.fill(band_direct_unshaded_horizontal, startx, 0, nx, dimy); direct_unshaded_horizontal.fill(band_direct_unshaded_horizontal, startx, 0, nx, dimy);
} }
MPIControl::instance().reduce_sum(direct, false); MPIControl::instance().reduce_sum(direct);
MPIControl::instance().reduce_sum(diffuse, false); MPIControl::instance().reduce_sum(diffuse);
MPIControl::instance().reduce_sum(direct_unshaded_horizontal, false); MPIControl::instance().reduce_sum(direct_unshaded_horizontal);
double solarAzimuth, solarElevation; double solarAzimuth, solarElevation;
radfields[0].getPositionSun(solarAzimuth, solarElevation); radfields[0].getPositionSun(solarAzimuth, solarElevation);
......
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