Phalanx  Development
 All Classes Functions Variables Typedefs Enumerations Friends Pages
Public Member Functions | List of all members
PHX::EvaluatorUnitTester< EvalType, Traits > Class Template Reference

Utility that allows for unit testing of single evaluator. More...

#include <Phalanx_Evaluator_UnitTester.hpp>

Public Member Functions

void setEvaluatorToTest (const Teuchos::RCP< PHX::Evaluator< Traits >> &e)
 Register the evaluator that will be unit tested.
 
void addAuxiliaryEvaluator (const Teuchos::RCP< PHX::Evaluator< Traits >> &e)
 Register an extra evaluator that is not tested but is used to provide intermediate quantities for testing a separate evaluator.
 
template<typename FieldType >
void setDependentFieldValues (FieldType &mdfield)
 Set an unmanaged MDField that provides dependent field values for the evaluator to be tested against.
 
void testEvaluator (typename Traits::SetupData d, typename Traits::PreEvalData pre_eval_data, typename Traits::EvalData eval_data, typename Traits::PostEvalData post_eval_data)
 begin
 
void setKokkosExtendedDataTypeDimensions (const std::vector< PHX::index_size_type > &dims)
 
template<typename FieldType , typename MagnitudeType >
void checkFloatValues1 (const FieldType &gold_field, const MagnitudeType &tolerance, bool &success, std::ostream &out)
 Check the field values to a specified tolerance for a rank 1 MDField.
 
template<typename FieldType , typename MagnitudeType >
void checkFloatValues2 (const FieldType &gold_field, const MagnitudeType &tolerance, bool &success, std::ostream &out)
 Check the field values to a specified tolerance for a rank 2 MDField.
 
template<typename FieldType , typename MagnitudeType >
void checkFloatValues3 (const FieldType &gold_field, const MagnitudeType &tolerance, bool &success, std::ostream &out)
 Check the field values to a specified tolerance for a rank 3 MDField.
 
template<typename FieldType , typename MagnitudeType >
void checkFloatValues4 (const FieldType &gold_field, const MagnitudeType &tolerance, bool &success, std::ostream &out)
 Check the field values to a specified tolerance for a rank 4 MDField.
 
template<typename FieldType , typename MagnitudeType >
void checkFloatValues5 (const FieldType &gold_field, const MagnitudeType &tolerance, bool &success, std::ostream &out)
 Check the field values to a specified tolerance for a rank 5 MDField.
 
template<typename FieldType , typename MagnitudeType >
void checkFloatValues6 (const FieldType &gold_field, const MagnitudeType &tolerance, bool &success, std::ostream &out)
 Check the field values to a specified tolerance for a rank 6 MDField.
 

Detailed Description

template<typename EvalType, typename Traits>
class PHX::EvaluatorUnitTester< EvalType, Traits >

Utility that allows for unit testing of single evaluator.


The documentation for this class was generated from the following file: