Namespaces | Functions
TestHelpers.hpp File Reference

Defines functions useful for testing general relativity. More...

#include <cstddef>
#include <random>
#include "DataStructures/Tensor/TypeAliases.hpp"

Go to the source code of this file.

Namespaces

 TestHelpers::gr
 Make random GR variables which correct physical behavior, e.g. spatial metric will be positive definite.
 

Functions

template<typename DataType >
Scalar< DataType > TestHelpers::gr::random_lapse (gsl::not_null< std::mt19937 *> generator, const DataType &used_for_size) noexcept
 
template<size_t Dim, typename DataType >
tnsr::I< DataType, Dim > TestHelpers::gr::random_shift (gsl::not_null< std::mt19937 *> generator, const DataType &used_for_size) noexcept
 
template<size_t Dim, typename DataType >
tnsr::ii< DataType, Dim > TestHelpers::gr::random_spatial_metric (gsl::not_null< std::mt19937 *> generator, const DataType &used_for_size) noexcept
 

Detailed Description

Defines functions useful for testing general relativity.