SWE
Classes | Functions | Variables
/import/home/rettenbs/src/SWE/src/blocks/cuda/SWE_BlockCUDA.hh File Reference
#include "blocks/SWE_Block.hh"
#include "tools/help.hh"
#include <iostream>
#include <fstream>
#include <cuda_runtime.h>

Go to the source code of this file.

Classes

class  SWE_BlockCUDA

Functions

void checkCUDAError (const char *msg)
void tryCUDA (cudaError_t err, const char *msg)
__device__ int getCellCoord (int x, int y, int ny)
__device__ int getEdgeCoord (int x, int y, int ny)
__device__ int getBathyCoord (int x, int y, int ny)

Variables

const int TILE_SIZE = 16

Detailed Description

This file is part of SWE.

Author:
Michael Bader, Kaveh Rahnema, Tobias Schnabel
Sebastian Rettenberger (rettenbs AT in.tum.de, http://www5.in.tum.de/wiki/index.php/Sebastian_Rettenberger,_M.Sc.)

LICENSE

SWE 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, either version 3 of the License, or (at your option) any later version.

SWE 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.

You should have received a copy of the GNU General Public License along with SWE. If not, see <http://www.gnu.org/licenses/>.

DESCRIPTION

TODO


Function Documentation

__device__ int getBathyCoord ( int  x,
int  y,
int  ny 
) [inline]

Return index of a specific element in the arrays of bathymetry source terms

Parameters:
i,jx- and y-coordinate of grid cell
nygrid size in y-direction (without ghost layers)
__device__ int getCellCoord ( int  x,
int  y,
int  ny 
) [inline]

Return index of hd[i][j] in linearised array

Parameters:
i,jx- and y-coordinate of grid cell
nygrid size in y-direction (without ghost layers)
__device__ int getEdgeCoord ( int  x,
int  y,
int  ny 
) [inline]

Return index of edge-data Fhd[i][j] or Ghd[i][j] in linearised array

Parameters:
i,jx- and y-coordinate of grid cell
nygrid size in y-direction (without ghost layers)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends