Revision bcfd72c9bcb903cbda4ed849c958d63446abd881 authored by renchao.lu on 01 May 2021, 12:51:27 UTC, committed by renchao.lu on 01 May 2021, 12:51:27 UTC
[MPL] Add overloaded operator functions at medium, phase, and component levels See merge request ogs/ogs!3590
FractureIdentity2.cpp
/**
* \file
* \copyright
* Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*/
#include "FractureIdentity2.h"
namespace MaterialLib
{
namespace Fracture
{
namespace
{
template <typename VectorType, int DisplacementDim>
VectorType initIdentity2()
{
VectorType ivec = VectorType::Zero(DisplacementDim);
ivec[DisplacementDim - 1] = 1;
return ivec;
}
} // anonymous namespace
template <int DisplacementDim>
const typename FractureIdentity2<DisplacementDim>::VectorType
FractureIdentity2<DisplacementDim>::value =
initIdentity2<typename FractureIdentity2<DisplacementDim>::VectorType,
DisplacementDim>();
// template instantiation
template struct FractureIdentity2<2>;
template struct FractureIdentity2<3>;
} // namespace Fracture
} // namespace MaterialLib
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...