-
Notifications
You must be signed in to change notification settings - Fork 9
/
cells.h
30 lines (25 loc) · 706 Bytes
/
cells.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* cells.h
*
* Created on: 16 Oct 2017
* Author: lorenzo
*/
#ifndef CELLS_H_
#define CELLS_H_
typedef struct PatchyParticle PatchyParticle;
typedef struct Output Output;
typedef struct System System;
typedef double vector[3];
typedef struct Cells {
int N_side[3];
int N;
PatchyParticle **heads;
PatchyParticle **next;
} Cells;
void cells_init(System *syst, Output *IO, double rcut);
int cells_fill_and_get_idx_from_particle(System *syst, PatchyParticle *p, int idx[3]);
int cells_fill_and_get_idx_from_vector(System *syst, vector r, int idx[3]);
void cells_fill(System *syst);
void cells_check(System *syst, Output *output_files);
void cells_free(Cells *cells);
#endif /* CELLS_H_ */