Discontinuous Galerkin Library
#include "dg/algorithm.h"
split_and_join.h File Reference
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include "dg/backend/blas1_dispatch_shared.h"
#include "dg/backend/view.h"
#include "dg/blas1.h"
#include "grid.h"
#include "dg/backend/mpi_vector.h"
#include "mpi_grid.h"
#include "mpi_evaluation.h"

Go to the source code of this file.

Namespaces

namespace  dg
 This is the namespace for all functions and classes defined and used by the discontinuous Galerkin library.
 

Typedefs

template<class MPIContainer >
using dg::get_mpi_view_type = std::conditional_t< std::is_const< MPIContainer >::value, MPI_Vector< View< const typename MPIContainer::container_type > >, MPI_Vector< View< typename MPIContainer::container_type > > >
 

Functions

template<class SharedContainer , class real_type >
void dg::split (SharedContainer &in, std::vector< View< SharedContainer > > &out, const aRealTopology3d< real_type > &grid)
 Split a vector into planes along the last dimension (fast version) More...
 
template<class SharedContainer , class real_type >
std::vector< View< SharedContainer > > dg::split (SharedContainer &in, const aRealTopology3d< real_type > &grid)
 Split a vector into planes along the last dimension (construct version) More...
 
template<class Container , class real_type >
void dg::assign3dfrom2d (const thrust::host_vector< real_type > &in2d, Container &out, const aRealTopology3d< real_type > &grid)
 Construct a 3d vector given a 2d host vector. More...
 
template<class MPIContainer , class real_type >
void dg::split (MPIContainer &in, std::vector< get_mpi_view_type< MPIContainer > > &out, const aRealMPITopology3d< real_type > &grid)
 MPI Version of split (fast version) More...
 
template<class MPIContainer , class real_type >
std::vector< get_mpi_view_type< MPIContainer > > dg::split (MPIContainer &in, const aRealMPITopology3d< real_type > &grid)
 MPI Version of split (construct version) More...
 
template<class LocalContainer , class real_type >
void dg::assign3dfrom2d (const MPI_Vector< thrust::host_vector< real_type > > &in2d, MPI_Vector< LocalContainer > &out, const aRealMPITopology3d< real_type > &grid)
 MPI Version of assign3dfrom2d. More...