Skip to content

Commit

Permalink
template routine ref idaholab#21930
Browse files Browse the repository at this point in the history
  • Loading branch information
miaoyinb committed Aug 26, 2022
1 parent a2796f3 commit 77dcda9
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 383 deletions.
22 changes: 22 additions & 0 deletions test/include/userobjects/ReadTripleIndex.h
Expand Up @@ -51,4 +51,26 @@ class ReadTripleIndex : public GeneralUserObject
_vector_postprocessor_name_tri;
const std::vector<std::vector<std::vector<OutputName>>> & _output_name_tri;
const std::vector<std::vector<std::vector<MaterialPropertyName>>> & _material_property_name_tri;

template <typename T>
void
TripleIndexNumberVectorChecker(const std::vector<std::vector<std::vector<T>>> triple_index_vector,
const std::string vector_name,
const std::vector<std::vector<std::vector<Real>>> reference_values,
const bool index_flip = false,
const bool flip_direction = false,
const Real scale_factor = 1.0,
const Real offset_value = 0.0);

template <typename T>
void TripleIndexStringVectorChecker(
const T triple_index_vector,
const std::string vector_name,
const std::string prefix,
const std::vector<std::vector<std::vector<Real>>> reference_values);
};

void
ReadTripleIndex::execute()
{
}

0 comments on commit 77dcda9

Please sign in to comment.