GPUE
v1.0
GPU Gross-Pitaevskii Equation numerical solver for Bose-Einstein condensates
|
Dastructure for simulation runtime parameters. More...
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <string.h>
#include <unordered_map>
#include <vector>
#include <fstream>
#include <cuda.h>
#include <cuda_runtime.h>
#include <cufft.h>
#include <typeinfo>
#include <cassert>
#include <iostream>
Go to the source code of this file.
Classes | |
struct | pos |
Struct for an x, y, z position. More... | |
struct | EqnNode |
Struct to hold the node information for the AST on the CPU. More... | |
struct | EqnNode_gpu |
Struct to hold the node information for the AST on the GPU. More... | |
class | Grid |
Class to hold the variable map and grid information. More... | |
Typedefs | |
typedef double(* | fnPtr) (double, double) |
function pointer type More... | |
typedef class Grid | Grid |
Functions | |
void | generate_plan_other2d (cufftHandle *plan_fft1d, Grid &par) |
Generates CUFFT plan for 2D simulations. More... | |
void | generate_plan_other3d (cufftHandle *plan_fft1d, Grid &par, int axis) |
Generates CUFFT plan for 3D simulations. More... | |
void | set_fns (Grid &par) |
Sets default functions for all fields (A, K, V) More... | |
Dastructure for simulation runtime parameters.
This file holds necessary classes and structs for all GPUE simulations. EqnNode and EqnNode_gpu are for dynamic parsing and Grid is for general use.
Definition in file ds.h.
void generate_plan_other2d | ( | cufftHandle * | plan_fft1d, |
Grid & | par | ||
) |
Generates CUFFT plan for 2D simulations.
void generate_plan_other3d | ( | cufftHandle * | plan_fft1d, |
Grid & | par, | ||
int | axis | ||
) |
Generates CUFFT plan for 3D simulations.
void set_fns | ( | Grid & | par | ) |
Sets default functions for all fields (A, K, V)