Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F84759647
dof_association.cc
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, Sep 24, 18:01
Size
2 KB
Mime Type
text/x-c++
Expires
Thu, Sep 26, 18:01 (2 d)
Engine
blob
Format
Raw Data
Handle
21082332
Attached To
rLIBMULTISCALE LibMultiScale
dof_association.cc
View Options
/**
* @file dof_association.cc
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
*
* @date Mon Nov 25 15:05:56 2013
*
* @brief Mother of all object which associates DOFs for coupling purpose
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* LibMultiScale 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.
*
* LibMultiScale 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 LibMultiScale. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#include "dof_association.hh"
#include "lib_bridging.hh"
#include "lib_continuum.hh"
#include "lib_dd.hh"
#include "lib_md.hh"
#include "lm_common.hh"
#include "lm_communicator.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_LIBMULTISCALE__
template
<
typename
ContainerA
,
typename
ContainerB
>
DofAssociation
<
ContainerA
,
ContainerB
>::
DofAssociation
(
const
std
::
string
&
name
,
ContainerA
&
cA
,
ContainerB
&
cB
)
:
LMObject
(
name
),
DofAssociationInterface
(
name
),
contA
(
cA
),
contB
(
cB
)
{
comm_group_A
=
contA
.
getCommGroup
();
comm_group_B
=
contB
.
getCommGroup
();
grid_division
.
setOnes
();
grid
=
NULL
;
total_points
=
0
;
local_points
=
0
;
nb_zone_A
=
comm_group_A
.
size
();
nb_zone_B
=
comm_group_B
.
size
();
in_group_A
=
comm_group_A
.
amIinGroup
();
in_group_B
=
comm_group_B
.
amIinGroup
();
DUMP
(
this
->
getID
()
<<
":in group A = "
<<
in_group_A
,
DBG_DETAIL
);
DUMP
(
this
->
getID
()
<<
":in group B = "
<<
in_group_B
,
DBG_DETAIL
);
if
(
in_group_A
)
{
com_with
.
resize
(
nb_zone_B
);
com_with
.
assign
(
false
,
nb_zone_B
);
}
if
(
in_group_B
)
{
com_with
.
resize
(
nb_zone_A
);
com_with
.
assign
(
false
,
nb_zone_A
);
}
}
/* -------------------------------------------------------------------------- */
template
<
typename
ContainerA
,
typename
ContainerB
>
DofAssociation
<
ContainerA
,
ContainerB
>::~
DofAssociation
()
{}
/* -------------------------------------------------------------------------- */
DECLARE_BRIDGING_ATOMIC_CONTINUUM_TEMPLATE
(
DofAssociation
)
DECLARE_BRIDGING_CONTINUUM_ATOMIC_TEMPLATE
(
DofAssociation
)
DECLARE_BRIDGING_DD_CONTINUUM_TEMPLATE
(
DofAssociation
)
__END_LIBMULTISCALE__
Event Timeline
Log In to Comment