Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98341537
solver_inline_impl.cc
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jan 12, 06:50
Size
2 KB
Mime Type
text/plain
Expires
Tue, Jan 14, 06:50 (1 d, 17 h)
Engine
blob
Format
Raw Data
Handle
21295424
Attached To
rAKA akantu
solver_inline_impl.cc
View Options
/**
* @file solver_inline_impl.cc
* @author Aurelia Cuba Ramos <aurelia.cubaramos@epfl.ch>
* @date Thu Nov 13 14:43:41 2014
*
* @brief implementation of solver inline functions
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* 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/>.
*
*/
/* -------------------------------------------------------------------------- */
inline UInt Solver::getNbDataForDOFs(const Array<UInt> & dofs,
SynchronizationTag tag) const {
AKANTU_DEBUG_IN();
UInt size = 0;
switch(tag) {
case _gst_solver_solution: {
size += dofs.getSize() * sizeof(Real);
break;
}
default: { }
}
AKANTU_DEBUG_OUT();
return size;
}
/* -------------------------------------------------------------------------- */
inline void Solver::packDOFData(CommunicationBuffer & buffer,
const Array<UInt> & dofs,
SynchronizationTag tag) const {
AKANTU_DEBUG_IN();
switch(tag) {
case _gst_solver_solution: {
packDOFDataHelper(*solution, buffer, dofs);
break;
}
default: {
}
}
AKANTU_DEBUG_OUT();
}
/* -------------------------------------------------------------------------- */
inline void Solver::unpackDOFData(CommunicationBuffer & buffer,
const Array<UInt> & dofs,
SynchronizationTag tag) {
AKANTU_DEBUG_IN();
switch(tag) {
case _gst_solver_solution: {
unpackDOFDataHelper(*solution, buffer, dofs);
break;
}
default: {
}
}
AKANTU_DEBUG_OUT();
}
Event Timeline
Log In to Comment