Open Qmin
0.8.0
GPU-accelerated Q-tensor-based liquid crystal simulations
|
#include <cmath>
#include <algorithm>
#include <memory>
#include <ctype.h>
#include <random>
#include <stdio.h>
#include <cstdlib>
#include <unistd.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <vector>
#include <sys/time.h>
#include <string.h>
#include <stdexcept>
#include <cassert>
#include <cuda_runtime.h>
#include "vector_types.h"
#include "vector_functions.h"
#include "nvToolsExt.h"
#include "dDimensionalVectorTypes.h"
#include "matrix.h"
#include "structures.h"
Macros | |
#define | THRESHOLD 1e-18 |
#define | EPSILON 1e-18 |
#define | PI 3.14159265358979323846 |
#define | scalar double |
#define | scalar2 double2 |
#define | scalar3 double3 |
#define | scalar4 double4 |
#define | ncscalar ncDouble |
#define | cur_norm curand_normal_double |
#define | Cos cos |
#define | Sin sin |
#define | Floor floor |
#define | Ceil ceil |
#define | MPI_SCALAR MPI_DOUBLE |
#define | HOSTDEVICE inline __attribute__((always_inline)) |
#define | NVTXPUSH(message) (nvtxProfPush(message)) |
#define | NVTXPOP(message) (nvtxProfPop()) |
#define | HANDLE_ERROR(err) (HandleError( err, __FILE__,__LINE__ )) |
#define | UNWRITTENCODE(message) (unwrittenCode(message,__FILE__,__LINE__)) |
#define | DEBUGCODEHELPER printf("\nReached: file %s at line %d\n",__FILE__,__LINE__); |
Functions | |
HOSTDEVICE scalar2 | make_scalar2 (scalar x, scalar y) |
return a scalar2 from two scalars More... | |
HOSTDEVICE scalar3 | make_scalar3 (scalar x, scalar y, scalar z) |
return a scalar3 from three scalars More... | |
HOSTDEVICE scalar3 | operator * (const scalar3 &a, const scalar &b) |
scalar multiplication of scalar3 More... | |
HOSTDEVICE scalar3 | operator * (const scalar b, const scalar3 &a) |
scalar multiplication of scalar3 More... | |
HOSTDEVICE scalar3 | operator+ (const scalar3 &a, const scalar3 &b) |
component-wise addition of two scalar3s More... | |
HOSTDEVICE int3 | operator- (const int3 &a, const int3 &b) |
component-wise subtraction of two int3s More... | |
HOSTDEVICE int3 | operator+ (const int3 &a, const int3 &b) |
component-wise addition of two int3s More... | |
HOSTDEVICE bool | operator< (const int3 &a, const int3 &b) |
strict comparison of int3s More... | |
HOSTDEVICE bool | operator> (const int3 &a, const int3 &b) |
HOSTDEVICE bool | operator<= (const int3 &a, const int3 &b) |
comparison of int3s More... | |
HOSTDEVICE bool | operator>= (const int3 &a, const int3 &b) |
bool | fileExists (const std::string &name) |
A utility function for checking if a file exists. More... | |
a file to be included all the time... carries with it things DMS often uses. It includes some handy debugging / testing functions, and includes too many standard library headers It also defines scalars as either floats or doubles, depending on how the program is compiled
#define THRESHOLD 1e-18 |
#define EPSILON 1e-18 |
#define PI 3.14159265358979323846 |
#define scalar double |
#define scalar2 double2 |
#define scalar3 double3 |
#define scalar4 double4 |
#define ncscalar ncDouble |
#define cur_norm curand_normal_double |
#define Cos cos |
#define Sin sin |
#define Floor floor |
#define Ceil ceil |
#define MPI_SCALAR MPI_DOUBLE |
#define HOSTDEVICE inline __attribute__((always_inline)) |
#define NVTXPUSH | ( | message | ) | (nvtxProfPush(message)) |
#define NVTXPOP | ( | message | ) | (nvtxProfPop()) |
#define HANDLE_ERROR | ( | err | ) | (HandleError( err, __FILE__,__LINE__ )) |
#define UNWRITTENCODE | ( | message | ) | (unwrittenCode(message,__FILE__,__LINE__)) |
#define DEBUGCODEHELPER printf("\nReached: file %s at line %d\n",__FILE__,__LINE__); |
HOSTDEVICE scalar2 make_scalar2 | ( | scalar | x, |
scalar | y | ||
) |
return a scalar2 from two scalars
References scalar2.
HOSTDEVICE scalar3 make_scalar3 | ( | scalar | x, |
scalar | y, | ||
scalar | z | ||
) |
return a scalar3 from three scalars
References scalar3.
Referenced by landauDeGennesLC::computeObjectForces(), gpu_qTensor_computeObjectForceFromStresses_kernel(), operator *(), and operator+().
HOSTDEVICE scalar3 operator * | ( | const scalar3 & | a, |
const scalar & | b | ||
) |
scalar multiplication of scalar3
References make_scalar3().
HOSTDEVICE scalar3 operator * | ( | const scalar | b, |
const scalar3 & | a | ||
) |
scalar multiplication of scalar3
References make_scalar3().
HOSTDEVICE scalar3 operator+ | ( | const scalar3 & | a, |
const scalar3 & | b | ||
) |
component-wise addition of two scalar3s
References make_scalar3().
HOSTDEVICE int3 operator- | ( | const int3 & | a, |
const int3 & | b | ||
) |
component-wise subtraction of two int3s
HOSTDEVICE int3 operator+ | ( | const int3 & | a, |
const int3 & | b | ||
) |
component-wise addition of two int3s
HOSTDEVICE bool operator< | ( | const int3 & | a, |
const int3 & | b | ||
) |
strict comparison of int3s
HOSTDEVICE bool operator> | ( | const int3 & | a, |
const int3 & | b | ||
) |
HOSTDEVICE bool operator<= | ( | const int3 & | a, |
const int3 & | b | ||
) |
comparison of int3s
HOSTDEVICE bool operator>= | ( | const int3 & | a, |
const int3 & | b | ||
) |
|
inline |
A utility function for checking if a file exists.