13 #define van_der_Waals_thresh (1.049*1.049) 20 return dx*dx + dy*dy + dz*dz;
23 int main(
int argc,
char **argv)
45 for( idx=0; idx<
nAtoms; idx++ ) {
62 for( idx=0; idx<
nAtoms; idx++ ) {
80 fd = open(
"input.data", O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
81 assert( fd>0 &&
"Couldn't open input data file" );
static uint64_t prng_rand(struct prng_rand_t *state)
void data_to_input(int fd, void *vdata)
dvector_t position[blockSide][blockSide][blockSide][densityFactor]
int32_t n_points[blockSide][blockSide][blockSide]
static TYPE dist_sq(dvector_t p, dvector_t q)
int main(int argc, char **argv)
static void prng_srand(uint64_t seed, struct prng_rand_t *state)
x
Return the smallest n such that 2^n >= _x.
#define van_der_Waals_thresh