|
MOOSE - Multiscale Object Oriented Simulation Environment
|
#include "header.h"#include "Shell.h"#include "../scheduling/Clock.h"#include "../scheduling/testScheduling.h"#include "../builtins/Arith.h"#include "SparseMatrix.h"#include "SparseMsg.h"#include "SingleMsg.h"#include "OneToAllMsg.h"#include "Wildcard.h"
Include dependency graph for testShell.cpp:Go to the source code of this file.
Functions | |
| bool | checkArg1 (Id id, double v0, double v1, double v2, double v3, double v4) |
| bool | checkOutput (Id e, double v0, double v1, double v2, double v3, double v4) |
| bool | extractIndex (const string &s, unsigned int &index) |
| void | filterOffNodeTargets (unsigned int start, unsigned int end, bool isSrcGlobal, unsigned int myNode, vector< vector< Eref > > &erefs, vector< vector< bool > > &targetNodes) |
| void | testChildren () |
| Test the Neutral::children and buildTree. More... | |
| void | testChopPath () |
| void | testChopString () |
| void | testCopy () |
| void | testCopyFieldElement () |
| void | testCopyMsgOps () |
| void | testDescendant () |
| Test the Neutral::isDescendant. More... | |
| void | testExtractIndices () |
| void | testFilterOffNodeTargets () |
| void | testFindModelParent () |
| void | testGetMsgs () |
| void | testGetMsgSrcAndTarget () |
| void | testInterNodeOps () |
| void | testMove () |
| void | testMpiShell () |
| void | testObjIdToAndFromPath () |
| void | testShell () |
| void | testShellAddMsg () |
| void | testShellParserCreateDelete () |
| void | testShellParserQuit () |
| void | testShellParserStart () |
| void | testShellSetGet () |
| void | testSyncSynapseSize () |
| void | testTreeTraversal () |
| void | testWildcard () |
| void | verifyKids (Id f1, Id f2a, Id f2b, Id f3, Id f4a, Id f4b) |
| Utility function to check a commonly used tree structure. More... | |
Variables | |
| const bool | TEST_WARNING = false |
| bool checkArg1 | ( | Id | id, |
| double | v0, | ||
| double | v1, | ||
| double | v2, | ||
| double | v3, | ||
| double | v4 | ||
| ) |
Definition at line 762 of file testShell.cpp.
References Eref::data().
Here is the call graph for this function:| bool checkOutput | ( | Id | e, |
| double | v0, | ||
| double | v1, | ||
| double | v2, | ||
| double | v3, | ||
| double | v4 | ||
| ) |
Definition at line 795 of file testShell.cpp.
References doubleEq(), and Field< A >::get().
Referenced by testCopyMsgOps(), and testShellAddMsg().
Here is the call graph for this function:
Here is the caller graph for this function:| bool extractIndex | ( | const string & | s, |
| unsigned int & | index | ||
| ) |
Definition at line 423 of file Shell.cpp.
Referenced by Shell::chopPath(), and testExtractIndices().
Here is the caller graph for this function:| void filterOffNodeTargets | ( | unsigned int | start, |
| unsigned int | end, | ||
| bool | isSrcGlobal, | ||
| unsigned int | myNode, | ||
| vector< vector< Eref > > & | erefs, | ||
| vector< vector< bool > > & | targetNodes | ||
| ) |
Picks which messages we retain in the MsgDigest. Does so at two levels:
Definition at line 429 of file Element.cpp.
References ALLDATA, Eref::dataIndex(), Eref::element(), Eref::getNode(), Element::isGlobal(), and Shell::numNodes().
Referenced by Element::putTargetsInDigest(), and testFilterOffNodeTargets().
Here is the call graph for this function:
Here is the caller graph for this function:| void testChildren | ( | ) |
Test the Neutral::children and buildTree.
Definition at line 290 of file testShell.cpp.
References Eref::data(), Shell::doCreate(), Shell::doDelete(), Id::eref(), Field< A >::set(), TEST_WARNING, and verifyKids().
Referenced by testMpiShell(), and testShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testChopPath | ( | ) |
Definition at line 1345 of file testShell.cpp.
References Shell::chopPath().
Referenced by testShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testChopString | ( | ) |
Definition at line 1296 of file testShell.cpp.
References Shell::chopString().
Here is the call graph for this function:| void testCopy | ( | ) |
Definition at line 388 of file testShell.cpp.
References Eref::data(), Shell::doCopy(), Shell::doCreate(), Shell::doDelete(), Id::element(), Id::eref(), Field< A >::get(), Neutral::getChildren(), Element::getName(), Neutral::getParent(), MooseGlobal, path, and verifyKids().
Referenced by testMpiShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testCopyFieldElement | ( | ) |
Definition at line 440 of file testShell.cpp.
References Neutral::children(), Eref::data(), Shell::doCopy(), Shell::doCreate(), Shell::doDelete(), doubleEq(), Id::element(), Id::eref(), Field< A >::get(), Element::getName(), Field< A >::getVec(), Element::isGlobal(), MooseGlobal, Element::numData(), Element::numField(), Field< A >::set(), Field< A >::setRepeat(), Field< A >::setVec(), and Id::value().
Referenced by testMpiShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testCopyMsgOps | ( | ) |
Definition at line 1083 of file testShell.cpp.
References checkOutput(), Eref::data(), Shell::doAddMsg(), Shell::doCopy(), Shell::doCreate(), Shell::doDelete(), Shell::doReinit(), Shell::doSetClock(), Shell::doStart(), doubleEq(), Shell::doUseClock(), Id::eref(), Field< A >::get(), init(), MooseGlobal, SetGet3< A1, A2, A3 >::set(), and SetGet1< A >::setVec().
Referenced by testMpiShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testDescendant | ( | ) |
Test the Neutral::isDescendant.
Definition at line 234 of file testShell.cpp.
References Eref::data(), Shell::doCreate(), Shell::doDelete(), Id::eref(), and Neutral::isDescendant().
Referenced by testMpiShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testExtractIndices | ( | ) |
Definition at line 1257 of file testShell.cpp.
References extractIndex().
Referenced by testShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testFilterOffNodeTargets | ( | ) |
Definition at line 1716 of file testShell.cpp.
References ALLDATA, Eref::data(), Shell::doCreate(), Shell::doDelete(), Id::element(), Id::eref(), filterOffNodeTargets(), MooseBlockBalance, myNode, and Shell::numNodes().
Referenced by testMpiShell(), and testShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testFindModelParent | ( | ) |
Definition at line 1380 of file testShell.cpp.
References Eref::data(), Shell::doCreate(), Shell::doDelete(), Id::eref(), findModelParent(), and path.
Referenced by testMpiShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testGetMsgs | ( | ) |
Tests message inspection fields on Neutral. These include msgOut: all outgoing Msgs, reported as ObjId of their managers msgIn: all incoming Msgs, reported as ObjId of their managers msgSrc: All source Ids of messages coming into specified field msgDest: All dest Ids of messages going out of specified field
Definition at line 1518 of file testShell.cpp.
References Eref::data(), Shell::doAddMsg(), Shell::doCreate(), Shell::doDelete(), and Id::eref().
Referenced by testShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testGetMsgSrcAndTarget | ( | ) |
Definition at line 1702 of file testShell.cpp.
Referenced by testShell().
Here is the caller graph for this function:| void testInterNodeOps | ( | ) |
Tests Shell operations carried out on multiple nodes
Definition at line 708 of file testShell.cpp.
References Eref::data(), Shell::doCreate(), Shell::doDelete(), Id::eref(), and Shell::myNode().
Referenced by testMpiShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testMove | ( | ) |
Definition at line 323 of file testShell.cpp.
References Eref::data(), Shell::doCreate(), Shell::doDelete(), Shell::doMove(), Id::eref(), Field< A >::get(), Neutral::getChildren(), path, and verifyKids().
Referenced by testMpiShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testMpiShell | ( | ) |
Definition at line 1833 of file testShell.cpp.
References testChildren(), testCopy(), testCopyFieldElement(), testCopyMsgOps(), testDescendant(), testFilterOffNodeTargets(), testFindModelParent(), testInterNodeOps(), testMove(), testObjIdToAndFromPath(), testShellAddMsg(), testShellParserCreateDelete(), testShellSetGet(), testSyncSynapseSize(), testTreeTraversal(), and testWildcard().
Referenced by mpiTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void testObjIdToAndFromPath | ( | ) |
Definition at line 549 of file testShell.cpp.
References Eref::data(), ObjId::dataIndex, Shell::doCreate(), Shell::doDelete(), Shell::doMove(), doubleEq(), ObjId::eref(), Id::eref(), ObjId::fieldIndex, Field< A >::get(), ObjId::id, Neutral::parent(), ObjId::path(), path, Field< A >::set(), and Id::value().
Referenced by testMpiShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testShell | ( | ) |
Definition at line 1818 of file testShell.cpp.
References testChildren(), testChopPath(), testExtractIndices(), testFilterOffNodeTargets(), testGetMsgs(), testGetMsgSrcAndTarget(), testTreeTraversal(), and testWildcard().
Referenced by nonMpiTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void testShellAddMsg | ( | ) |
Definition at line 836 of file testShell.cpp.
References checkOutput(), Eref::data(), Shell::doAddMsg(), Shell::doCreate(), Shell::doDelete(), Shell::doSetClock(), Shell::doStart(), doubleEq(), Shell::doUseClock(), Eref::element(), ObjId::eref(), Id::eref(), Cinfo::findFinfo(), Field< A >::get(), Element::getNeighbors(), Field< A >::getVec(), init(), Clock::initCinfo(), SetGet3< A1, A2, A3 >::set(), and SetGet1< A >::setVec().
Referenced by testMpiShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testShellParserCreateDelete | ( | ) |
Tests Create and Delete calls issued through the parser interface, which internally sets up blocking messaging calls.
Definition at line 31 of file testShell.cpp.
References Eref::data(), Shell::doCreate(), Shell::doDelete(), and Id::eref().
Referenced by testMpiShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testShellParserQuit | ( | ) |
Definition at line 1246 of file testShell.cpp.
References Eref::data(), Shell::doQuit(), and Id::eref().
Here is the call graph for this function:| void testShellParserStart | ( | ) |
Definition at line 640 of file testShell.cpp.
References Eref::data(), Id::destroy(), Shell::doCreate(), Shell::doSetClock(), Shell::doStart(), Shell::doUseClock(), Id::eref(), MooseGlobal, and Shell::myNode().
Here is the call graph for this function:| void testShellSetGet | ( | ) |
Definition at line 724 of file testShell.cpp.
References Eref::data(), Shell::doCreate(), Shell::doDelete(), doubleEq(), Id::eref(), Field< A >::get(), Field< A >::getVec(), SetGet1< A >::set(), and SetGet1< A >::setVec().
Referenced by testMpiShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testSyncSynapseSize | ( | ) |
Definition at line 1455 of file testShell.cpp.
References Eref::data(), Shell::doCreate(), Shell::doDelete(), ObjId::element(), Id::eref(), Cinfo::find(), Cinfo::findFinfo(), Element::numField(), Shell::numNodes(), Field< A >::set(), Field< A >::setVec(), and Id::value().
Referenced by testMpiShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testTreeTraversal | ( | ) |
Tests traversal through parents and siblings.
Definition at line 45 of file testShell.cpp.
References ALLDATA, ObjId::bad(), Neutral::child(), Eref::data(), Shell::doCreate(), Shell::doDelete(), Shell::doFind(), Id::element(), Id::eref(), Field< A >::get(), ObjId::id, ObjId::path(), Id::path(), path, Field< A >::set(), Shell::setCwe(), TEST_WARNING, and Id::value().
Referenced by testMpiShell(), and testShell().
Here is the call graph for this function:
Here is the caller graph for this function:| void testWildcard | ( | ) |
Definition at line 591 of file Wildcard.cpp.
References alignedSingleWildcardMatch(), ALLDATA, Eref::data(), Shell::doCreate(), Shell::doDelete(), Id::eref(), findBraceContent(), findWithSingleCharWildcard(), matchBeforeBrace(), matchInsideBrace(), name, Field< A >::set(), simpleWildcardFind(), and wildcardTestFunc().
Referenced by testMpiShell(), and testShell().
Here is the call graph for this function:
Here is the caller graph for this function:Utility function to check a commonly used tree structure.
Definition at line 266 of file testShell.cpp.
References Neutral::buildTree(), Neutral::children(), Eref::data(), and Id::eref().
Referenced by testChildren(), testCopy(), and testMove().
Here is the call graph for this function:
Here is the caller graph for this function:| const bool TEST_WARNING = false |
Definition at line 25 of file testShell.cpp.
Referenced by testChildren(), and testTreeTraversal().