18 #ifndef TERRAINRADIATIONPETSC_H 19 #define TERRAINRADIATIONPETSC_H 23 #include <meteoio/MeteoIO.h> 32 TerrainRadiationPETSc(
const mio::Config& i_cfg,
const mio::DEMObject& dem_in,
const int& i_nbworkers,
const std::string& method);
35 void getRadiation(
const mio::Array2D<double>& direct, mio::Array2D<double>& diffuse, mio::Array2D<double>& terrain);
36 void setMeteo(
const mio::Array2D<double>& albedo,
const mio::Array2D<double>& ta,
37 const mio::Array2D<double>& rh,
const mio::Array2D<double>& ilwr);
40 const mio::DEMObject& dem;
41 const unsigned int dimx, dimy;
47 PetscInt Mstart, Mend;
48 PetscInt Istart, Iend, N, B;
50 int multiIndexToRowIndex(
const PetscInt& i,
const PetscInt& N);
51 int multiIndexToColIndex(
const PetscInt& i,
const PetscInt& N);
52 PetscInt indexToMultiIndex(
const unsigned int& i,
const unsigned int& j,
const PetscInt& N);
Definition: TerrainRadiationAlgorithm.h:35
void getRadiation(const mio::Array2D< double > &direct, mio::Array2D< double > &diffuse, mio::Array2D< double > &terrain)
Definition: TerrainRadiationPETSc.cc:118
void setMeteo(const mio::Array2D< double > &albedo, const mio::Array2D< double > &ta, const mio::Array2D< double > &rh, const mio::Array2D< double > &ilwr)
Definition: TerrainRadiationPETSc.cc:177
Definition: TerrainRadiationPETSc.h:29
TerrainRadiationPETSc(const mio::Config &i_cfg, const mio::DEMObject &dem_in, const int &i_nbworkers, const std::string &method)
Definition: TerrainRadiationPETSc.cc:23
~TerrainRadiationPETSc()
Definition: TerrainRadiationPETSc.cc:108