Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
#include "gmxpre.h"
#include "utility.h"
#include "gromacs/mdtypes/state.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/smalloc.h"
#include "domdec_internal.h"
+ Include dependency graph for utility.cpp:

Description

Declares utility functions used in the domain decomposition module.

Author
Berk Hess hess@.nosp@m.kth..nosp@m.se

Functions

char dim2char (int dim)
 Returns the character, x/y/z, corresponding to dimension dim.
 
void make_tric_corr_matrix (int npbcdim, const matrix box, matrix tcm)
 Sets matrix to convert from Cartesian to lattice coordinates.
 
void check_screw_box (const matrix box)
 Ensure box obeys the screw restrictions, fatal error if not.
 
void dd_resize_state (t_state *state, PaddedHostVector< gmx::RVec > *f, int natoms)
 Resize the state and f.
 
void dd_check_alloc_ncg (t_forcerec *fr, t_state *state, PaddedHostVector< gmx::RVec > *f, int numChargeGroups)
 Ensure fr, state and f, if != nullptr, can hold numChargeGroups atoms for the Verlet scheme and charge groups for the group scheme. More...
 

Function Documentation

void dd_check_alloc_ncg ( t_forcerec *  fr,
t_state state,
PaddedHostVector< gmx::RVec > *  f,
int  numChargeGroups 
)

Ensure fr, state and f, if != nullptr, can hold numChargeGroups atoms for the Verlet scheme and charge groups for the group scheme.

todo refactor this now that group scheme is removed