PandA-2024.02
Functions
md_kernel_test.c File Reference
#include "md.h"
Include dependency graph for md_kernel_test.c:

Go to the source code of this file.

Functions

TYPE distance (TYPE position_x[nAtoms], TYPE position_y[nAtoms], TYPE position_z[nAtoms], int i, int j)
 
void insertInOrder (TYPE currDist[maxNeighbors], int currList[maxNeighbors], int j, TYPE distIJ)
 
int buildNeighborList (TYPE position_x[nAtoms], TYPE position_y[nAtoms], TYPE position_z[nAtoms], int NL[nAtoms][maxNeighbors])
 
int populateNeighborList (TYPE currDist[maxNeighbors], int currList[maxNeighbors], const int i, int NL[nAtoms][maxNeighbors])
 
int main ()
 

Function Documentation

◆ buildNeighborList()

int buildNeighborList ( TYPE  position_x[nAtoms],
TYPE  position_y[nAtoms],
TYPE  position_z[nAtoms],
int  NL[nAtoms][maxNeighbors] 
)

Definition at line 44 of file md_kernel_test.c.

References distance(), k, maxNeighbors, nAtoms, NL, populateNeighborList(), and TYPE.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ distance()

TYPE distance ( TYPE  position_x[nAtoms],
TYPE  position_y[nAtoms],
TYPE  position_z[nAtoms],
int  i,
int  j 
)

◆ insertInOrder()

void insertInOrder ( TYPE  currDist[maxNeighbors],
int  currList[maxNeighbors],
int  j,
TYPE  distIJ 
)
inline

Definition at line 18 of file md_kernel_test.c.

References TYPE.

◆ main()

int main ( void  )

Definition at line 87 of file md_kernel_test.c.

References buildNeighborList(), L, MAX_ITERATION, maxNeighbors, md_kernel(), nAtoms, NL, and TYPE.

Here is the call graph for this function:

◆ populateNeighborList()

int populateNeighborList ( TYPE  currDist[maxNeighbors],
int  currList[maxNeighbors],
const int  i,
int  NL[nAtoms][maxNeighbors] 
)

Definition at line 73 of file md_kernel_test.c.

References maxNeighbors, and NL.

Referenced by buildNeighborList().

Here is the caller graph for this function:

Generated on Mon Feb 12 2024 13:03:10 for PandA-2024.02 by doxygen 1.8.13