![]() |
BG_Flood
0.8
Documentation (Work-in-progress)
|
#include "Spherical.h"
Functions | |
| template<class T > | |
| __host__ __device__ T | calcCM (T Radius, T delta, T yo, int iy) |
| template __host__ __device__ double | calcCM (double Radius, double delta, double yo, int iy) |
| template __host__ __device__ float | calcCM (float Radius, float delta, float yo, int iy) |
| template<class T > | |
| __host__ __device__ T | calcFM (T Radius, T delta, T yo, T iy) |
| template __host__ __device__ double | calcFM (double Radius, double delta, double yo, double iy) |
| template __host__ __device__ float | calcFM (float Radius, float delta, float yo, float iy) |
| template<class T > | |
| __host__ __device__ T | haversin (T Radius, T lon1, T lat1, T lon2, T lat2) |
| template<class T > | |
| __host__ __device__ T | spharea (T Radius, T lon, T lat, T dx) |
| template __host__ __device__ double | spharea (double Radius, double lon, double lat, double dx) |
| template __host__ __device__ float | spharea (float Radius, float lon, float lat, float dx) |
| template __host__ __device__ double calcCM | ( | double | Radius, |
| double | delta, | ||
| double | yo, | ||
| int | iy | ||
| ) |
| template __host__ __device__ float calcCM | ( | float | Radius, |
| float | delta, | ||
| float | yo, | ||
| int | iy | ||
| ) |
| T calcCM | ( | T | Radius, |
| T | delta, | ||
| T | yo, | ||
| int | iy | ||
| ) |
Scale factor for y face length (x face lengh scale is always 1 in spherical model assuming that lat long are entered)
| template __host__ __device__ double calcFM | ( | double | Radius, |
| double | delta, | ||
| double | yo, | ||
| double | iy | ||
| ) |
| template __host__ __device__ float calcFM | ( | float | Radius, |
| float | delta, | ||
| float | yo, | ||
| float | iy | ||
| ) |
| __host__ __device__ T calcFM | ( | T | Radius, |
| T | delta, | ||
| T | yo, | ||
| T | iy | ||
| ) |
| T haversin | ( | T | Radius, |
| T | lon1, | ||
| T | lat1, | ||
| T | lon2, | ||
| T | lat2 | ||
| ) |
Classic haversin function The function is too slow to use directly in BG_flood engine but is more usable (i.e. naive) for model setup
| template __host__ __device__ double spharea | ( | double | Radius, |
| double | lon, | ||
| double | lat, | ||
| double | dx | ||
| ) |
| template __host__ __device__ float spharea | ( | float | Radius, |
| float | lon, | ||
| float | lat, | ||
| float | dx | ||
| ) |
| __host__ __device__ T spharea | ( | T | Radius, |
| T | lon, | ||
| T | lat, | ||
| T | dx | ||
| ) |