Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
common_debug_helpers.h File Reference

Common debugging helpers. More...

#include <iostream>
#include <vector>
#include <iomanip>
#include <Kokkos_Core.hpp>

Go to the source code of this file.

Functions

template<typename T >
void print_view_recursive (const T *data, const std::vector< size_t > &extents, std::ostream &os, std::vector< size_t > &indices, size_t dim, const std::vector< size_t > &strides)
 
template<typename ViewType >
void print_view (const ViewType &view, std::ostream &os=std::cout)
 

Detailed Description

Common debugging helpers.

Author
Matthew Bonanni (mbona.nosp@m.nni0.nosp@m.01@gm.nosp@m.ail..nosp@m.com)
Version
0.1
Date
2024-12-07

Function Documentation

◆ print_view()

template<typename ViewType >
void print_view ( const ViewType &  view,
std::ostream &  os = std::cout 
)

◆ print_view_recursive()

template<typename T >
void print_view_recursive ( const T *  data,
const std::vector< size_t > &  extents,
std::ostream &  os,
std::vector< size_t > &  indices,
size_t  dim,
const std::vector< size_t > &  strides 
)