Alpine3D 20240511.cd14b8b
OMPControl.h
Go to the documentation of this file.
1/***********************************************************************************/
2/* Copyright 2009-2015 WSL Institute for Snow and Avalanche Research SLF-DAVOS */
3/***********************************************************************************/
4/* This file is part of Alpine3D.
5 Alpine3D is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 Alpine3D is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with Alpine3D. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef OMPCONTROL_H
19#define OMPCONTROL_H
20#include <meteoio/MeteoIO.h>
21#include <snowpack/libsnowpack.h>
22
23#include <cstdio>
24
25namespace OMPControl
26{
37 void getArraySliceParams(const size_t& dimx, const size_t& nbworkers, const size_t& idx_wk, size_t& startx_sub, size_t& nx_sub);
38 void getArraySliceParamsOptim(const size_t& nbworkers, const std::vector<SnowStation*>&, const mio::DEMObject& mpi_sub_dem,
39 const mio::Grid2DObject& mpi_sub_landuse, std::vector<std::vector<size_t> >& omp_snow_stations_ind);
40
41}
42#endif
Definition: OMPControl.cc:6
void 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)
Definition: OMPControl.cc:30
void 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...
Definition: OMPControl.cc:7