SpECTRE  2021.08.02
ExtentsAndTensorVolumeData Struct Reference

Holds the extents of the mesh and the tensor components on the mesh. More...

#include <TensorData.hpp>

Public Member Functions

 ExtentsAndTensorVolumeData (std::vector< size_t > extents_in, std::vector< TensorComponent > components) noexcept
 
void pup (PUP::er &p) noexcept
 

Public Attributes

std::vector< size_t > extents {}
 
std::vector< TensorComponenttensor_components {}
 

Detailed Description

Holds the extents of the mesh and the tensor components on the mesh.

The extents is a std::vector<size_t> where each element is the number of grid points in the given dimension. The TensorComponents must live on the grid of the size of the extents. We use runtime extents instead of the Index class because observers may write 1D, 2D, or 3D data in a 3D simulation.