Last commit for parallelwork.h: 8a155c1522c0818d43b6bae4cc5806ea41f88793

Parallel md code using OpenMP and MPI

Ramses van Zon [2016-09-29 14:34:01]
Parallel md code using OpenMP and MPI
#ifndef PARALLELWORKH
#define PARALLELWORKH

#include "atom.h"

typedef struct parallel_work_t {
    double** atomfx;
    double** atomfy;
    double** atomfz;
    int      nthreads;
    atom_t** send_buffer_atoms;
    atom_t** recv_buffer_atoms;
    int**    blocklens;
    int**    blockinit;
} parallel_work_t;

void work_alloc(parallel_work_t* work, int maxN, int sendrecvnum, int bufmax, int maxsendcells);

void work_free(parallel_work_t* work);

#endif
ViewGit