test_intersect_boxes.cc File Reference
#include <iostream>
#include <string>
#include <vector>
#include "gtest/gtest.h"
#include "portage/intersect/intersect_boxes.h"
#include "portage/search/search_direct_product.h"
#include "wonton/mesh/direct_product/direct_product_mesh.h"
#include "wonton/mesh/direct_product/direct_product_mesh_wrapper.h"
#include "wonton/mesh/adaptive_refinement/adaptive_refinement_mesh.h"
#include "wonton/mesh/adaptive_refinement/adaptive_refinement_mesh_wrapper.h"

Functions

double cartesian_moment_1d (int const order, double const xbar, const double dx)
 
template<int D>
double cartesian_moment (std::array< int, D > const &exponents, Wonton::Point< D > const xbar, Wonton::Point< D > const dx)
 
template<int D, typename CoordSys >
double analytic_moment (std::array< int, D > const &exponents, Wonton::Point< D > const xbar, Wonton::Point< D > const dx)
 
template<>
double analytic_moment< 3, Wonton::Spherical3DCoordinates > (std::array< int, 3 > const &exponents, Wonton::Point< 3 > const xbar, Wonton::Point< 3 > const dx)
 
template<int D, typename CoordSys >
void intersect_test ()
 
 TEST (Intersect_Boxes_Test, IntersectBoxesTest1DCartesian)
 
 TEST (Intersect_Boxes_Test, IntersectBoxesTest2DCartesian)
 
 TEST (Intersect_Boxes_Test, IntersectBoxesTest3DCartesian)
 
 TEST (Intersect_Boxes_Test, IntersectBoxesTest1DCylindrical)
 
 TEST (Intersect_Boxes_Test, IntersectBoxesTest2DCylindricalA)
 
 TEST (Intersect_Boxes_Test, IntersectBoxesTest2DCylindricalP)
 
 TEST (Intersect_Boxes_Test, IntersectBoxesTest3DCylindrical)
 
 TEST (Intersect_Boxes_Test, IntersectBoxesTest1DSpherical)
 

Function Documentation

◆ analytic_moment()

template<int D, typename CoordSys >
double analytic_moment ( std::array< int, D > const &  exponents,
Wonton::Point< D > const  xbar,
Wonton::Point< D > const  dx 
)

◆ analytic_moment< 3, Wonton::Spherical3DCoordinates >()

template<>
double analytic_moment< 3, Wonton::Spherical3DCoordinates > ( std::array< int, 3 > const &  exponents,
Wonton::Point< 3 > const  xbar,
Wonton::Point< 3 > const  dx 
)

◆ cartesian_moment()

template<int D>
double cartesian_moment ( std::array< int, D > const &  exponents,
Wonton::Point< D > const  xbar,
Wonton::Point< D > const  dx 
)

◆ cartesian_moment_1d()

double cartesian_moment_1d ( int const  order,
double const  xbar,
const double  dx 
)

◆ intersect_test()

template<int D, typename CoordSys >
void intersect_test ( )

◆ TEST() [1/8]

TEST ( Intersect_Boxes_Test  ,
IntersectBoxesTest1DCartesian   
)

◆ TEST() [2/8]

TEST ( Intersect_Boxes_Test  ,
IntersectBoxesTest2DCartesian   
)

◆ TEST() [3/8]

TEST ( Intersect_Boxes_Test  ,
IntersectBoxesTest3DCartesian   
)

◆ TEST() [4/8]

TEST ( Intersect_Boxes_Test  ,
IntersectBoxesTest1DCylindrical   
)

◆ TEST() [5/8]

TEST ( Intersect_Boxes_Test  ,
IntersectBoxesTest2DCylindricalA   
)

◆ TEST() [6/8]

TEST ( Intersect_Boxes_Test  ,
IntersectBoxesTest2DCylindricalP   
)

◆ TEST() [7/8]

TEST ( Intersect_Boxes_Test  ,
IntersectBoxesTest3DCylindrical   
)

◆ TEST() [8/8]

TEST ( Intersect_Boxes_Test  ,
IntersectBoxesTest1DSpherical   
)