GPUE  v1.0
GPU Gross-Pitaevskii Equation numerical solver for Bose-Einstein condensates
srt.cc File Reference

Go to the source code of this file.

Functions

double sepAvg (int2 *vArray, int2 centre, int length)
 

Function Documentation

◆ sepAvg()

double sepAvg ( int2 *  vArray,
int2  centre,
int  length 
)

Definition at line 2 of file srt.cc.

References mpi_vis::i, vort::length, pow(), and sqrt().

2  {
3  double result=0.0;// = sqrt( pow(centre.x - v_array[0].x,2) + pow(centre.y - v_array[0].y,2));
4  for (int i=0; i<length; ++i){
5  result += sqrt( pow(centre.x - v_array[i].x,2) + pow(centre.y - v_array[i].y,2));
6  }
7  return result/length;
8 }
__device__ double2 pow(double2 a, int b)
power operation for a double2
list i
Definition: mpi_vis.py:168
end if sqrt(sum([x(ii), y(ii)].^ 2))< radius %% ignore edges if(length(DT.vertexAttachments
length
Definition: vort.py:75
Here is the call graph for this function: