Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93954659
grid_synchronizer_tmpl.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, Dec 2, 19:46
Size
2 KB
Mime Type
text/x-c++
Expires
Wed, Dec 4, 19:46 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
22685320
Attached To
rAKA akantu
grid_synchronizer_tmpl.hh
View Options
/**
* Copyright (©) 2017-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 "grid_synchronizer.hh"
#ifndef AKANTU_GRID_SYNCHRONIZER_TMPL_HH_
#define AKANTU_GRID_SYNCHRONIZER_TMPL_HH_
namespace
akantu
{
/* -------------------------------------------------------------------------- */
template
<
typename
E
>
GridSynchronizer
::
GridSynchronizer
(
Mesh
&
mesh
,
const
SpatialGrid
<
E
>
&
grid
,
const
ID
&
id
,
const
bool
register_to_event_manager
,
EventHandlerPriority
event_priority
)
:
ElementSynchronizer
(
mesh
,
id
,
register_to_event_manager
,
event_priority
)
{
AKANTU_DEBUG_IN
();
this
->
createGridSynchronizer
(
grid
);
AKANTU_DEBUG_OUT
();
}
template
<
typename
E
>
GridSynchronizer
::
GridSynchronizer
(
Mesh
&
mesh
,
const
SpatialGrid
<
E
>
&
grid
,
SynchronizerRegistry
&
synchronizer_registry
,
const
std
::
set
<
SynchronizationTag
>
&
tags_to_register
,
const
ID
&
id
,
const
bool
register_to_event_manager
,
EventHandlerPriority
event_priority
)
:
GridSynchronizer
(
mesh
,
grid
,
id
,
register_to_event_manager
,
event_priority
)
{
AKANTU_DEBUG_IN
();
// Register the tags if any
for
(
const
auto
&
tag
:
tags_to_register
)
{
synchronizer_registry
.
registerSynchronizer
(
*
this
,
tag
);
}
AKANTU_DEBUG_OUT
();
}
}
// namespace akantu
#endif
/* AKANTU_GRID_SYNCHRONIZER_TMPL_HH_ */
Event Timeline
Log In to Comment