MCPcopy Create free account
hub / github.com/KratosMultiphysics/Kratos / TensorAdaptor

Method TensorAdaptor

kratos/tensor_adaptors/tensor_adaptor.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33template<class TDataType>
34TensorAdaptor<TDataType>::TensorAdaptor(
35 ContainerPointerType pContainer,
36 typename NDData<TDataType>::Pointer pData,
37 const bool Copy)
38{
39 if (!Copy) {
40 this->mpStorage = pData;
41 } else {
42 this->mpStorage = Kratos::make_shared<NDData<TDataType>>(pData->ViewData().data(), pData->Shape(), Copy);
43 }
44 this->mpContainer = pContainer;
45}
46
47template<class TDataType>
48TensorAdaptor<TDataType>::TensorAdaptor(

Callers

nothing calls this directly

Calls 3

dataMethod · 0.45
ViewDataMethod · 0.45
ShapeMethod · 0.45

Tested by

no test coverage detected