MOOSE - Multiscale Object Oriented Simulation Environment
|
#include "header.h"
#include "../basecode/SparseMatrix.h"
#include "FastMatrixElim.h"
#include "../shell/Shell.h"
Go to the source code of this file.
Functions | |
double | checkAns (const double *m, unsigned int numCompts, const double *ans, const double *rhs) |
void | testCalcJunction () |
void | testCellDiffn () |
void | testCylDiffn () |
void | testCylDiffnWithStoich () |
void | testDiffusion () |
void | testFastMatrixElim () |
void | testSetDiffusionAndTransport () |
void | testSmallCellDiffn () |
void | testSorting () |
void | testTaperingCylDiffn () |
double checkAns | ( | const double * | m, |
unsigned int | numCompts, | ||
const double * | ans, | ||
const double * | rhs | ||
) |
Definition at line 29 of file testDiffusion.cpp.
Referenced by testFastMatrixElim().
void testCalcJunction | ( | ) |
Definition at line 827 of file testDiffusion.cpp.
References ObjId::bad(), Eref::data(), Shell::doAddMsg(), Shell::doCreate(), Shell::doDelete(), Shell::doReinit(), Shell::doSetClock(), Shell::doStart(), doubleEq(), Shell::doUseClock(), Id::eref(), Field< A >::get(), PI, Field< A >::set(), and SetGet2< A1, A2 >::set().
Referenced by testDiffusion().
void testCellDiffn | ( | ) |
Definition at line 595 of file testDiffusion.cpp.
References Eref::data(), Shell::doCreate(), Shell::doDelete(), Shell::doReinit(), Shell::doSetClock(), Shell::doStart(), doubleEq(), Shell::doUseClock(), Id::element(), Id::eref(), Field< A >::get(), Field< A >::getVec(), makeCompt(), name, Element::numData(), and Field< A >::set().
Referenced by testDiffusion().
void testCylDiffn | ( | ) |
Definition at line 341 of file testDiffusion.cpp.
References Eref::data(), Shell::doCreate(), Shell::doDelete(), Shell::doReinit(), Shell::doSetClock(), Shell::doStart(), doubleEq(), Shell::doUseClock(), Id::eref(), Field< A >::get(), Field< A >::getVec(), PI, and Field< A >::set().
Referenced by testDiffusion().
void testCylDiffnWithStoich | ( | ) |
Definition at line 678 of file testDiffusion.cpp.
References Eref::data(), Shell::doCreate(), Shell::doDelete(), Shell::doReinit(), Shell::doSetClock(), Shell::doStart(), doubleEq(), Shell::doUseClock(), Id::element(), Id::eref(), Field< A >::get(), Field< A >::getVec(), Element::numData(), PI, and Field< A >::set().
Referenced by testDiffusion().
void testDiffusion | ( | ) |
Definition at line 914 of file testDiffusion.cpp.
References testCalcJunction(), testCellDiffn(), testCylDiffn(), testCylDiffnWithStoich(), testFastMatrixElim(), testSetDiffusionAndTransport(), testSmallCellDiffn(), testSorting(), and testTaperingCylDiffn().
Referenced by nonMpiTests().
void testFastMatrixElim | ( | ) |
Definition at line 46 of file testDiffusion.cpp.
References FastMatrixElim::advance(), FastMatrixElim::buildBackwardSub(), FastMatrixElim::buildForwardElim(), checkAns(), SparseMatrix< T >::get(), FastMatrixElim::hinesReorder(), and FastMatrixElim::makeTestMatrix().
Referenced by testDiffusion().
void testSetDiffusionAndTransport | ( | ) |
Definition at line 288 of file testDiffusion.cpp.
References doubleEq(), SparseMatrix< T >::get(), FastMatrixElim::makeTestMatrix(), and FastMatrixElim::setDiffusionAndTransport().
Referenced by testDiffusion().
void testSmallCellDiffn | ( | ) |
Cell looks like: soma dend[0] dend[1] b1[0] b2[0] b1[1] b2[1] t1[0] t2[0] t1[1] t2[1]
The matrix should look like:
s d0 d1 b10 b11 t10 t11 t20 t21 b20 b21
s # 1 0 0 0 0 0 0 0 0 0 d0 1 # 1 0 0 0 0 0 0 0 0 d1 0 1 # 1 0 0 0 0 0 1 0 b10 0 0 1 # 1 0 0 0 0 c 0 b11 0 0 0 1 # 1 0 1 0 0 0 t10 0 0 0 0 1 # 1 c 0 0 0 t11 0 0 0 0 0 1 # 0 0 0 0 t20 0 0 0 0 1 c 0 # 1 0 0 t21 0 0 0 0 0 0 0 1 # 0 0 b20 0 0 1 c 0 0 0 0 0 # 1 b21 0 0 0 0 0 0 0 0 0 1 #
Definition at line 498 of file testDiffusion.cpp.
References Eref::data(), Shell::doCreate(), Shell::doDelete(), Shell::doReinit(), Shell::doSetClock(), Shell::doStart(), doubleEq(), Shell::doUseClock(), Id::element(), Id::eref(), Field< A >::get(), Field< A >::getVec(), makeCompt(), name, Element::numData(), and Field< A >::set().
Referenced by testDiffusion().
void testSorting | ( | ) |
Definition at line 253 of file testDiffusion.cpp.
References sortByColumn().
Referenced by testDiffusion().
void testTaperingCylDiffn | ( | ) |
Definition at line 422 of file testDiffusion.cpp.
References Eref::data(), Shell::doCreate(), Shell::doDelete(), Shell::doReinit(), Shell::doSetClock(), Shell::doStart(), doubleEq(), Shell::doUseClock(), Id::element(), Id::eref(), Field< A >::get(), Field< A >::getVec(), Element::numData(), and Field< A >::set().
Referenced by testDiffusion().