43 #ifndef __Panzer_STK_PeriodicBC_MatchConditions_hpp__
44 #define __Panzer_STK_PeriodicBC_MatchConditions_hpp__
46 #include "Teuchos_Tuple.hpp"
51 namespace panzer_stk {
66 std::string errStr =
"CoordMatcher \"" + std::string(1,
labels_[
index_]) +
"-coord\" takes at most two parameters <tol, relative>";
75 std::string errStr2 = params[1] +
" is not a valid periodic option (try \"relative\")";
102 std::stringstream ss;
122 +
"-coord\" takes at most two parameter <tol, relative>";
126 if(params.size()==1) {
127 std::stringstream ss;
130 if(params.size()==2){
131 std::string errStr2 = params[1] +
" is not a valid periodic option (try \"relative\")";
146 PlaneMatcher(
int index0,
int index1,
const std::vector<std::string> & params)
165 std::stringstream ss;
184 +
"-quarter-coord\" takes only one parameter <tol>";
188 if(params.size()==1) {
189 std::stringstream ss;
220 std::stringstream ss;
249 (std::fabs(a[1-index0_]-b[1-index0_])<
error_) &&
250 (std::fabs(a[2]-b[2])<
error_) );
255 std::stringstream ss;
257 ss <<
"wy-coord <tol=" <<
error_ <<
">";
259 ss <<
"wx-coord <tol=" << error_ <<
">";
QuarterPlaneMatcher(int index0a, int index0b, int index1)
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
int index0_
index to compare - 0 for wy, 1 for wx
CoordMatcher(int index, double error)
CoordMatcher(int index, const std::vector< std::string > ¶ms)
bool operator()(const Teuchos::Tuple< double, 3 > &a, const Teuchos::Tuple< double, 3 > &b) const
WedgeMatcher(int index0, const std::vector< std::string > &)
PlaneMatcher(int index0, int index1, const std::vector< std::string > ¶ms)
PlaneMatcher(const PlaneMatcher &cm)
CoordMatcher(const CoordMatcher &cm)
bool operator()(const Teuchos::Tuple< double, 3 > &a, const Teuchos::Tuple< double, 3 > &b) const
WedgeMatcher(int index0, double error)
void parseParams(const std::vector< std::string > ¶ms)
std::string getString() const
std::string getString() const
bool operator()(const Teuchos::Tuple< double, 3 > &a, const Teuchos::Tuple< double, 3 > &b) const
void parseParams(const std::vector< std::string > ¶ms)
QuarterPlaneMatcher(int index0a, int index0b, int index1, double error)
PlaneMatcher(int index0, int index1)
QuarterPlaneMatcher(const QuarterPlaneMatcher &cm)
void parseParams(const std::vector< std::string > ¶ms)
std::string getString() const
QuarterPlaneMatcher(int index0a, int index0b, int index1, const std::vector< std::string > ¶ms)
bool operator()(const Teuchos::Tuple< double, 3 > &a, const Teuchos::Tuple< double, 3 > &b) const
std::string getString() const
#define TEUCHOS_ASSERT(assertion_test)
PlaneMatcher(int index0, int index1, double error)