Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94966816
dof_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
Wed, Dec 11, 19:01
Size
2 KB
Mime Type
text/x-c++
Expires
Fri, Dec 13, 19:01 (2 d)
Engine
blob
Format
Raw Data
Handle
22865268
Attached To
rAKA akantu
dof_synchronizer.hh
View Options
/**
* Copyright (©) 2011-2023 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* This file is part of Akantu
*
* Akantu is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Akantu is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Akantu. If not, see <http://www.gnu.org/licenses/>.
*/
/* -------------------------------------------------------------------------- */
#include "aka_array.hh"
#include "aka_common.hh"
#include "synchronizer.hh"
/* -------------------------------------------------------------------------- */
namespace
akantu
{
class
Mesh
;
class
DOFManagerDefault
;
}
// namespace akantu
#ifndef AKANTU_DOF_SYNCHRONIZER_HH_
#define AKANTU_DOF_SYNCHRONIZER_HH_
namespace
akantu
{
class
DOFSynchronizer
:
public
SynchronizerImpl
<
Idx
>
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
DOFSynchronizer
(
DOFManagerDefault
&
dof_manager
,
const
ID
&
id
=
"dof_synchronizer"
);
~
DOFSynchronizer
()
override
;
virtual
void
registerDOFs
(
const
ID
&
dof_id
);
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
void
onNodesAdded
(
const
Array
<
Idx
>
&
nodes
);
protected
:
Int
getRank
(
const
Idx
&
/*node*/
)
const
final
{
AKANTU_TO_IMPLEMENT
();
}
/// list the entities to send to root process
void
fillEntityToSend
(
Array
<
Idx
>
&
dofs_to_send
)
override
;
inline
Int
canScatterSize
()
override
;
inline
Int
gatheredSize
()
override
;
inline
Idx
localToGlobalEntity
(
const
Idx
&
local
)
override
;
private
:
/// information on the dofs
DOFManagerDefault
&
dof_manager
;
};
}
// namespace akantu
#include "dof_synchronizer_inline_impl.hh"
#endif
/* AKANTU_DOF_SYNCHRONIZER_HH_ */
Event Timeline
Log In to Comment