27 #include <cuda_runtime.h> 82 void optLatSetup(
const std::shared_ptr<Vtx::Vortex> centre,
const double*
V,
83 std::vector<std::shared_ptr<Vtx::Vortex>> &vArray,
double theta_opt,
84 double intensity,
double* v_opt,
const double *
x,
const double *
y,
% % % starting wavefunction wfc
Dastructure for simulation runtime parameters.
Useful physical constants.
Vortex lattice position, orientation, and tracking.
void parSum(double2 *gpuWfc, Grid &par)
Performs parallel summation and renormalises the wavefunction.
int isError(int result, char *c)
Checks if CUDA operation has succeeded. Prints to stdout.
void optLatSetup(const std::shared_ptr< Vtx::Vortex > centre, const double *V, std::vector< std::shared_ptr< Vtx::Vortex >> &vArray, double theta_opt, double intensity, double *v_opt, const double *x, const double *y, Grid &par)
Creates the optical lattice to match the vortex lattice constant.
double energy_calc(Grid &par, double2 *wfc)
Calculates the energy of the condensate.
Class to hold the variable map and grid information.