1.3.49
 
Loading...
Searching...
No Matches
EnergyBalanceModel.cu File Reference
#include <cuda_runtime.h>
#include "EnergyBalanceModel.h"

Go to the source code of this file.

Macros

#define CUDA_CHECK_ERROR(ans)
 

Functions

void gpuAssert (cudaError_t code, const char *file, int line, bool abort=true)
 
__device__ float evaluateEnergyBalance (float T, float R, float Qother, float eps, float Ta, float ea, float pressure, float gH, float gS, uint Nsides, float stomatal_sidedness, float heatcapacity, float surfacehumidity, float dt, float Tprev)
 
__global__ void solveEnergyBalance (uint Nprimitives, float *To, float *R, float *Qother, float *eps, float *Ta, float *ea, float *pressure, float *gH, float *gS, uint *Nsides, float *stomatal_sidedness, float *TL, float *heatcapacity, float *surfacehumidity, float dt)
 

Detailed Description

Energy balance model plugin declarations (CUDA kernels).

Copyright (C) 2016-2025 Brian Bailey

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Definition in file EnergyBalanceModel.cu.

Macro Definition Documentation

◆ CUDA_CHECK_ERROR

#define CUDA_CHECK_ERROR (   ans)
Value:
{ \
gpuAssert((ans), __FILE__, __LINE__); \
}

Definition at line 21 of file EnergyBalanceModel.cu.

Function Documentation

◆ evaluateEnergyBalance()

__device__ float evaluateEnergyBalance ( float  T,
float  R,
float  Qother,
float  eps,
float  Ta,
float  ea,
float  pressure,
float  gH,
float  gS,
uint  Nsides,
float  stomatal_sidedness,
float  heatcapacity,
float  surfacehumidity,
float  dt,
float  Tprev 
)

Definition at line 33 of file EnergyBalanceModel.cu.

◆ gpuAssert()

void gpuAssert ( cudaError_t  code,
const char *  file,
int  line,
bool  abort = true 
)
inline

Definition at line 25 of file EnergyBalanceModel.cu.

◆ solveEnergyBalance()

__global__ void solveEnergyBalance ( uint  Nprimitives,
float *  To,
float *  R,
float *  Qother,
float *  eps,
float *  Ta,
float *  ea,
float *  pressure,
float *  gH,
float *  gS,
uint Nsides,
float *  stomatal_sidedness,
float *  TL,
float *  heatcapacity,
float *  surfacehumidity,
float  dt 
)

Definition at line 60 of file EnergyBalanceModel.cu.