![]() |
OpenPFC
0.1.4
Phase Field Crystal simulation framework
|
Pretty-print 3D arrays to console. More...
#include "typename.hpp"#include <array>#include <complex>#include <iomanip>#include <iostream>#include <vector>

Go to the source code of this file.
Functions | |
| template<typename T > | |
| void | pfc::utils::show (const std::vector< T > &data, const std::array< int, 3 > &size, const std::array< int, 3 > &offsets) |
| template<typename T > | |
| void | pfc::utils::show (const std::vector< T > &data, const std::array< int, 2 > &size, const std::array< int, 2 > &offsets) |
Pretty-print 3D arrays to console.
This header provides the show() template function for pretty-printing 3D arrays stored in std::vector with size and offset information.
The function displays:
This is particularly useful for debugging field data and visualization of small computational domains.