Page MenuHomec4science

dof_association.cc
No OneTemporary

File Metadata

Created
Sat, Jul 6, 20:24

dof_association.cc

/**
* @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__
DofAssociation::DofAssociation(const std::string &name)
: LMObject(name), DofAssociationInterface(name) {
grid_division.setOnes();
total_points = 0;
local_points = 0;
}
template <typename ContA, typename ContB>
void DofAssociation::init(ContA &contA, ContB &contB) {
LM_TOIMPLEMENT;
// contA(cA), contB(cB)
// grid = NULL;
// comm_group_A = contA.getCommGroup();
// comm_group_B = contB.getCommGroup();
// 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);
// }
}
/* -------------------------------------------------------------------------- */
DofAssociation::~DofAssociation() {}
/* -------------------------------------------------------------------------- */
// DECLARE_BRIDGING_ATOMIC_CONTINUUM_TEMPLATE(DofAssociation)
// DECLARE_BRIDGING_CONTINUUM_ATOMIC_TEMPLATE(DofAssociation)
// DECLARE_BRIDGING_DD_CONTINUUM_TEMPLATE(DofAssociation)
__END_LIBMULTISCALE__

Event Timeline