KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Static Public Member Functions | List of all members
Kratos::AmgclDistributedCSRConversionUtilities Class Reference

#include <amgcl_distributed_csr_conversion_utilities.h>

Collaboration diagram for Kratos::AmgclDistributedCSRConversionUtilities:

Static Public Member Functions

template<class TDataType , class TIndexType >
static Kratos::shared_ptr< amgcl::mpi::distributed_matrix< amgcl::backend::builtin< double > > > ConvertToAmgcl (const DistributedCsrMatrix< TDataType, TIndexType > &rA, DenseVector< TIndexType > &global_index2, bool MoveToBackend=true)
 
template<class TDataType , class TIndexType >
static DistributedCsrMatrix< TDataType, TIndexType >::UniquePointer ConvertToCsrMatrix (amgcl::mpi::distributed_matrix< amgcl::backend::builtin< double >> &rA, const DataCommunicator &kratos_comm)
 
template<class TDataType , class TIndexType >
static DistributedCsrMatrix< TDataType, TIndexType >::Pointer Transpose (const DistributedCsrMatrix< TDataType, TIndexType > &rA)
 

Detailed Description

Utilities to convert the distributed_csr matrix to other libraries

Member Function Documentation

◆ ConvertToAmgcl()

template<class TDataType , class TIndexType >
static Kratos::shared_ptr<amgcl::mpi::distributed_matrix<amgcl::backend::builtin<double> > > Kratos::AmgclDistributedCSRConversionUtilities::ConvertToAmgcl ( const DistributedCsrMatrix< TDataType, TIndexType > &  rA,
DenseVector< TIndexType > &  global_index2,
bool  MoveToBackend = true 
)
inlinestatic

This function returns a shared pointer to an Amgcl distributed_matrix

◆ ConvertToCsrMatrix()

template<class TDataType , class TIndexType >
static DistributedCsrMatrix<TDataType, TIndexType>::UniquePointer Kratos::AmgclDistributedCSRConversionUtilities::ConvertToCsrMatrix ( amgcl::mpi::distributed_matrix< amgcl::backend::builtin< double >> &  rA,
const DataCommunicator kratos_comm 
)
inlinestatic

◆ Transpose()

template<class TDataType , class TIndexType >
static DistributedCsrMatrix<TDataType, TIndexType>::Pointer Kratos::AmgclDistributedCSRConversionUtilities::Transpose ( const DistributedCsrMatrix< TDataType, TIndexType > &  rA)
inlinestatic

The documentation for this class was generated from the following file: