Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79489282
facet_synchronizer.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
Mon, Aug 26, 16:16
Size
3 KB
Mime Type
text/x-c++
Expires
Wed, Aug 28, 16:16 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
20030966
Attached To
rAKA akantu
facet_synchronizer.hh
View Options
/**
* @file facet_synchronizer.hh
*
* @author Marco Vocialta <marco.vocialta@epfl.ch>
*
*
* @brief Facet synchronizer for parallel simulations with cohesive elments
*
*
* Copyright (©) 2010-2012, 2014 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
*/
/* -------------------------------------------------------------------------- */
#include "element_synchronizer.hh"
#include "fe_engine.hh"
/* -------------------------------------------------------------------------- */
#ifndef AKANTU_FACET_SYNCHRONIZER_HH_
#define AKANTU_FACET_SYNCHRONIZER_HH_
namespace
akantu
{
class
FacetSynchronizer
:
public
ElementSynchronizer
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
FacetSynchronizer
(
Mesh
&
mesh
,
const
ElementSynchronizer
&
element_synchronizer
,
const
ID
&
id
=
"facet_synchronizer"
,
MemoryID
memory_id
=
0
);
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
/// update distributed synchronizer after elements' insertion
void
updateDistributedSynchronizer
(
ElementSynchronizer
&
distributed_synchronizer
,
DataAccessor
<
Element
>
&
data_accessor
,
const
Mesh
&
mesh_cohesive
);
protected
:
/// update elements list based on facets list
void
updateElementList
(
Array
<
Element
>
*
elements
,
const
Array
<
Element
>
*
facets
,
const
Mesh
&
mesh_cohesive
);
/// setup facet synchronization
void
setupFacetSynchronization
(
ElementSynchronizer
&
distributed_synchronizer
);
/// build send facet arrays
void
buildSendElementList
(
const
Array
<
ElementTypeMapArray
<
UInt
>
*>
&
send_connectivity
,
const
Array
<
ElementTypeMapArray
<
UInt
>
*>
&
recv_connectivity
,
const
Array
<
ElementTypeMapArray
<
UInt
>
*>
&
temp_send_element
);
/// build recv facet arrays
void
buildRecvElementList
(
const
Array
<
ElementTypeMapArray
<
UInt
>
*>
&
temp_recv_element
);
/// get facets' global connectivity for a list of elements
template
<
GhostType
ghost_facets
>
inline
void
getFacetGlobalConnectivity
(
const
ElementSynchronizer
&
distributed_synchronizer
,
const
ElementTypeMapArray
<
UInt
>
&
rank_to_facet
,
const
Array
<
Element
>
*
elements
,
Array
<
ElementTypeMapArray
<
UInt
>
*>
&
connectivity
,
Array
<
ElementTypeMapArray
<
UInt
>
*>
&
facets
);
/// initialize ElementTypeMap containing correspondance between
/// facets and processors
void
initRankToFacet
(
ElementTypeMapArray
<
UInt
>
&
rank_to_facet
);
/// find which processor a facet is assigned to
void
buildRankToFacet
(
ElementTypeMapArray
<
UInt
>
&
rank_to_facet
,
const
Array
<
Element
>
*
elements
);
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private
:
ElementTypeMapArray
<
UInt
>
facet_to_rank
;
};
}
// namespace akantu
#include "facet_synchronizer_inline_impl.hh"
#endif
/* AKANTU_FACET_SYNCHRONIZER_HH_ */
Event Timeline
Log In to Comment