Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66592401
crack_numbers_updater.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jun 11, 16:05
Size
1 KB
Mime Type
text/x-c++
Expires
Thu, Jun 13, 16:05 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18245604
Attached To
rAKA akantu
crack_numbers_updater.hh
View Options
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_CRACK_NUMBERS_UPDATER_HH__
#define __AKANTU_CRACK_NUMBERS_UPDATER_HH__
/* -------------------------------------------------------------------------- */
#include "data_accessor.hh"
#include "solid_mechanics_model.hh"
/* -------------------------------------------------------------------------- */
namespace akantu {
class ElementSynchronizer;
} // namespace akantu
namespace akantu {
class CrackNumbersUpdater : public DataAccessor<Element> {
public:
CrackNumbersUpdater(SolidMechanicsModel & model,
const ElementSynchronizer & synchronizer)
: model(model), synchronizer(synchronizer) {}
void communicateCrackNumbers();
/* ------------------------------------------------------------------------ */
/* Data Accessor inherited members */
/* ------------------------------------------------------------------------ */
public:
inline UInt getNbData(const Array<Element> & elements,
const SynchronizationTag & tag) const override;
inline void packData(CommunicationBuffer & buffer,
const Array<Element> & elements,
const SynchronizationTag & tag) const override;
inline void unpackData(CommunicationBuffer & buffer,
const Array<Element> & elements,
const SynchronizationTag & tag) override;
/* ------------------------------------------------------------------------ */
/* Members */
/* ------------------------------------------------------------------------ */
private:
/// Reference to the model
SolidMechanicsModel & model;
/// distributed synchronizer to communicate nodes positions
const ElementSynchronizer & synchronizer;
};
} // namespace akantu
#include "crack_numbers_updater_inline_impl.cc"
#endif /* __AKANTU_CRACK_NUMBERS_UPDATER_HH__ */
Event Timeline
Log In to Comment