MOAB: Mesh Oriented datABase  (version 5.4.1)
TopologyInfoTest.cpp File Reference
#include <algorithm>
#include <iostream>
#include "cppunit/extensions/HelperMacros.h"
#include "Mesquite.hpp"
#include "MsqError.hpp"
#include "TopologyInfo.hpp"
+ Include dependency graph for TopologyInfoTest.cpp:

Go to the source code of this file.

Classes

class  TopologyInfoTest
struct  ho_result

Functions

 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (TopologyInfoTest,"TopologyInfoTest")
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (TopologyInfoTest,"Unit")
static void shift (const unsigned *in, unsigned *out, unsigned size, unsigned offset)
static void reverse (const unsigned *in, unsigned *out, unsigned size, unsigned offset)

Variables

const ho_result HEX27 []
const ho_result *const HEX20 = HEX27
const ho_result *const HEX26 = HEX27
const ho_result HEX15 []
const ho_result *const HEX14 = HEX15
const ho_result HEX9 [] = { { 3, 0, 8 } }

Function Documentation

static void shift ( const unsigned *  in,
unsigned *  out,
unsigned  size,
unsigned  offset 
) [static]

Definition at line 1438 of file TopologyInfoTest.cpp.

References size.

Referenced by TopologyInfoTest::find_face(), and moab::TupleList::radix_index_sort().

{
    for( unsigned i = 0; i < size; ++i )
        out[i] = in[( i + offset ) % size];
}

Variable Documentation

const ho_result HEX15[]
Initial value:
 { { 2, 0, 8 },  { 2, 1, 9 },  { 2, 2, 10 }, { 2, 3, 11 },
                            { 2, 4, 12 }, { 2, 5, 13 }, { 3, 0, 14 } }

Definition at line 1299 of file TopologyInfoTest.cpp.

Referenced by TopologyInfoTest::higher_order_from_side(), and TopologyInfoTest::side_from_higher_order().

const ho_result HEX27[]
Initial value:
 { { 1, 0, 8 },   { 1, 1, 9 },   { 1, 2, 10 }, { 1, 3, 11 }, { 1, 4, 12 },
                            { 1, 5, 13 },  { 1, 6, 14 },  { 1, 7, 15 }, { 1, 8, 16 }, { 1, 9, 17 },
                            { 1, 10, 18 }, { 1, 11, 19 }, { 2, 0, 20 }, { 2, 1, 21 }, { 2, 2, 22 },
                            { 2, 3, 23 },  { 2, 4, 24 },  { 2, 5, 25 }, { 3, 0, 26 } }

Definition at line 1291 of file TopologyInfoTest.cpp.

Referenced by TopologyInfoTest::higher_order_from_side(), and TopologyInfoTest::side_from_higher_order().

const ho_result HEX9[] = { { 3, 0, 8 } }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines