Gromacs  2020.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
broadcaststructs.h File Reference
#include <vector>
#include "gromacs/gmxlib/network.h"
#include "gromacs/mdtypes/commrec.h"
#include "gromacs/utility/arrayref.h"
#include "gromacs/utility/smalloc.h"
+ Include dependency graph for broadcaststructs.h:

Description

Convenience wrappers for broadcasting structs.

Author
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Functions

template<typename T >
void block_bc (const t_commrec *cr, T &data)
 Convenience wrapper for gmx_bcast of a single value.
 
template<typename T >
void nblock_bc (const t_commrec *cr, int numElements, T *data)
 Convenience wrapper for gmx_bcast of a C-style array.
 
template<typename T >
void nblock_bc (const t_commrec *cr, gmx::ArrayRef< T > data)
 Convenience wrapper for gmx_bcast of an ArrayRef<T>
 
template<typename T >
void snew_bc (const t_commrec *cr, T *&data, int numElements)
 Convenience wrapper for allocation with snew of vectors that need allocation on non-master ranks.
 
template<typename T >
void nblock_abc (const t_commrec *cr, int numElements, T **v)
 Convenience wrapper for gmx_bcast of a C-style array which needs allocation on non-master ranks.
 
template<typename T >
void nblock_abc (const t_commrec *cr, int numElements, std::vector< T > *v)
 Convenience wrapper for gmx_bcast of a std::vector which needs resizing on non-master ranks.
 
void broadcastStateWithoutDynamics (const t_commrec *cr, t_state *state)
 Broadcasts the, non-dynamic, state from the master to all ranks in cr->mpi_comm_mygroup.
 
void init_parallel (t_commrec *cr, t_inputrec *inputrec, gmx_mtop_t *mtop, PartialDeserializedTprFile *partialDeserializedTpr)
 Broadcast inputrec and mtop and allocate node-specific settings.