Alpine3D  Alpine3D-3.2.0
OMPControl.h File Reference
#include <meteoio/MeteoIO.h>
#include <snowpack/libsnowpack.h>
#include <cstdio>

Go to the source code of this file.

Namespaces

 OMPControl
 

Functions

void OMPControl::getArraySliceParams (const size_t &dimx, const size_t &nbworkers, const size_t &idx_wk, size_t &startx_sub, size_t &nx_sub)
 Returns the parameters for splitting an array in several, balanced sub-arrays. This is mostly usefull for parallel calculations, where an array will be split and sent to different workers. More...
 
void OMPControl::getArraySliceParamsOptim (const size_t &nbworkers, const std::vector< SnowStation *> &snow_station, const mio::DEMObject &dem, const mio::Grid2DObject &landuse, std::vector< std::vector< size_t > > &omp_snow_stations_ind)