NetDEM v1.0
Loading...
Searching...
No Matches
bond_entry_parser.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "bond_entry.hpp"
4#include "bond_entry_data.hpp"
5#include "mini_map.hpp"
6#include <mpi.h>
7
8namespace netdem {
9
18public:
29 static void ClassToStruct(const BondEntry *const entry_class,
30 BondEntryData *const entry_struct);
31
43 static void
44 StructToClass(BondEntry *const entry_class,
45 const BondEntryData *const entry_struct,
46 const MiniMap<int, ContactModel *> &contact_model_map);
47
56 static void DefineMPIDataType(MPI_Datatype *const datatype);
57};
58
59} // namespace netdem
The BondEntry class represents a collection of contact geometries and forces for one bond.
Definition bond_entry.hpp:16
A class that provides functions to convert bond entry data between a class and a struct format.
Definition bond_entry_parser.hpp:17
static void StructToClass(BondEntry *const entry_class, const BondEntryData *const entry_struct, const MiniMap< int, ContactModel * > &contact_model_map)
Converts bond entry data from a struct to a class format.
Definition bond_entry_parser.cpp:88
static void DefineMPIDataType(MPI_Datatype *const datatype)
Defines an MPI datatype for a BondEntryData struct.
Definition bond_entry_parser.cpp:179
static void ClassToStruct(const BondEntry *const entry_class, BondEntryData *const entry_struct)
Converts bond entry data from a class to a struct format.
Definition bond_entry_parser.cpp:6
Definition mini_map.hpp:17
Definition bond_entry.hpp:7
A struct that represents data associated with a bond entry.
Definition bond_entry_data.hpp:13