Gromacs
2018.8
|
#include <cstdio>
#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/topology/idef.h"
Declares functions for managing threading of listed forces.
Functions | |
void | setup_bonded_threading (t_forcerec *fr, t_idef *idef) |
Divide the listed interactions over the threads. More... | |
void | init_bonded_threading (FILE *fplog, int nenergrp, struct bonded_threading_t **bt_ptr) |
Initialize the bonded threading data structures. More... | |
void init_bonded_threading | ( | FILE * | fplog, |
int | nenergrp, | ||
struct bonded_threading_t ** | bt_ptr | ||
) |
Initialize the bonded threading data structures.
Allocates and initializes a bonded threading data structure. A pointer to this struct is returned as *bb_ptr
.
void setup_bonded_threading | ( | t_forcerec * | fr, |
t_idef * | idef | ||
) |
Divide the listed interactions over the threads.
Uses fr->nthreads for the number of threads, and sets up the thread-force buffer reduction. This should be called each time the bonded setup changes; i.e. at start-up without domain decomposition and at DD.