9 #include <fei_iostream.hpp>
11 #include <test_utils/test_PointBlockMap.hpp>
12 #include <snl_fei_PointBlockMap.hpp>
15 #define fei_file "test_PointBlockMap.cpp"
16 #include <fei_ErrMacros.hpp>
18 test_PointBlockMap::test_PointBlockMap(MPI_Comm comm)
23 test_PointBlockMap::~test_PointBlockMap()
27 int test_PointBlockMap::runtests()
36 int test_PointBlockMap::test1()
40 CHK_ERR( pbMap.
setEqn(0, 0) );
41 CHK_ERR( pbMap.
setEqn(1, 0) );
42 CHK_ERR( pbMap.
setEqn(2, 0) );
43 CHK_ERR( pbMap.
setEqn(3, 1) );
44 CHK_ERR( pbMap.
setEqn(4, 1) );
45 CHK_ERR( pbMap.
setEqn(5, 2) );
52 if (blkEqnOffset != 0) {
94 if (maxBlkSize == 0) {
101 int test_PointBlockMap::test2()
105 CHK_ERR( pbMap.
setEqn(0, 0) );
106 CHK_ERR( pbMap.
setEqn(1, 0) );
107 CHK_ERR( pbMap.
setEqn(2, 0) );
108 CHK_ERR( pbMap.
setEqn(3, 1) );
109 CHK_ERR( pbMap.
setEqn(4, 1) );
110 CHK_ERR( pbMap.
setEqn(5, 2) );
116 std::map<int,std::pair<int,int> >* blkEqns = pbMap.
getBlkEqns();
118 std::map<int,std::pair<int,int> >::const_iterator
119 iter = blkEqns->begin(),
120 iter_end = blkEqns->end();
122 for(; iter != iter_end; ++iter) {
123 if ((*iter).first < 0) {
131 int test_PointBlockMap::test3()
136 int test_PointBlockMap::test4()
bool isExactlyBlkEqn(int ptEqn)
int setBlkEqnSize(int blkEqn, int size)
int getBlkEqnOffset(int blkEqn, int ptEqn)
int setEqn(int ptEqn, int blkEqn)
int eqnToBlkEqn(int eqn) const
std::map< int, std::pair< int, int > > * getBlkEqns()
int getBlkEqnSize(int blkEqn)
int getPtEqnInfo(int ptEqn, int &blkEqn, int &blkOffset)
int getBlkEqnInfo(int blkEqn, int &ptEqn, int &blkSize)