shell/testShell.cpp File Reference

#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:

Functions

void testShellParserCreateDelete ()
void testTreeTraversal ()
void testDescendant ()
 Test the Neutral::isDescendant.
void verifyKids (Id f1, Id f2a, Id f2b, Id f3, Id f4a, Id f4b)
 Utility function to check a commonly used tree structure.
void testChildren ()
 Test the Neutral::children and buildTree.
void testMove ()
void testCopy ()
void testCopyFieldElement ()
void testObjIdToAndFromPath ()
void testShellParserStart ()
void testInterNodeOps ()
void testShellSetGet ()
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)
void testShellAddMsg ()
void testCopyMsgOps ()
void testShellParserQuit ()
bool extractIndex (const string &s, unsigned int &index)
void testExtractIndices ()
void testChopString ()
void testChopPath ()
void testFindModelParent ()
void testSyncSynapseSize ()
void testGetMsgs ()
void testGetMsgSrcAndTarget ()
void filterOffNodeTargets (unsigned int start, unsigned int end, bool isSrcGlobal, unsigned int myNode, vector< vector< Eref > > &erefs, vector< vector< bool > > &targetNodes)
void testFilterOffNodeTargets ()
void testWildcard ()
void testShell ()
void testMpiShell ()

Variables

const bool TEST_WARNING = false

Function Documentation

bool checkArg1 ( Id  id,
double  v0,
double  v1,
double  v2,
double  v3,
double  v4 
)

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 
)

References doubleEq(), and Field< A >::get().

Referenced by testCopyMsgOps(), and testShellAddMsg().

Here is the call graph for this function:

bool extractIndex ( const string &  s,
unsigned int &  index 
)

Referenced by testExtractIndices().

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:

  • Builds an array[][] of bools to indicate messages sourced here that go off-node. These will have special HopFuncs added.
  • Retains entries in erefs that are sourced anywhere, but targetted here. Need to be able to handle off-node messages landing here, as well as the entirely local messages.

References ALLDATA, Eref::dataIndex(), Eref::element(), Eref::getNode(), Element::isGlobal(), and Shell::numNodes().

Referenced by testFilterOffNodeTargets().

Here is the call graph for this function:

void testChildren (  ) 

Test the Neutral::children and buildTree.

References Eref::data(), Shell::doCreate(), Shell::doDelete(), Field< A >::set(), TEST_WARNING, and verifyKids().

Referenced by testMpiShell(), and testShell().

Here is the call graph for this function:

void testChopPath (  ) 

References Shell::chopPath().

Referenced by testShell().

Here is the call graph for this function:

void testChopString (  ) 

References Shell::chopString().

Here is the call graph for this function:

void testCopy (  ) 
void testCopyFieldElement (  ) 
void testCopyMsgOps (  ) 
void testDescendant (  ) 

Test the Neutral::isDescendant.

References Eref::data(), Shell::doCreate(), Shell::doDelete(), and Neutral::isDescendant().

Referenced by testMpiShell().

Here is the call graph for this function:

void testExtractIndices (  ) 

References extractIndex().

Referenced by testShell().

Here is the call graph for this function:

void testFilterOffNodeTargets (  ) 
void testFindModelParent (  ) 

References Eref::data(), Shell::doCreate(), Shell::doDelete(), and findModelParent().

Referenced by testMpiShell().

Here is the call 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

References Eref::data(), Shell::doAddMsg(), Shell::doCreate(), and Shell::doDelete().

Referenced by testShell().

Here is the call graph for this function:

void testGetMsgSrcAndTarget (  ) 

Referenced by testShell().

void testInterNodeOps (  ) 

Tests Shell operations carried out on multiple nodes

References Eref::data(), Shell::doCreate(), Shell::doDelete(), and Shell::myNode().

Referenced by testMpiShell().

Here is the call graph for this function:

void testMove (  ) 
void testMpiShell (  ) 
void testObjIdToAndFromPath (  ) 
void testShell (  ) 
void testShellAddMsg (  ) 
void testShellParserCreateDelete (  ) 

Tests Create and Delete calls issued through the parser interface, which internally sets up blocking messaging calls.

References Eref::data(), Shell::doCreate(), and Shell::doDelete().

Referenced by testMpiShell().

Here is the call graph for this function:

void testShellParserQuit (  ) 

References Eref::data(), and Shell::doQuit().

Here is the call graph for this function:

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.

References Neutral::buildTree(), Neutral::children(), Eref::data(), and Id::eref().

Referenced by testChildren(), testCopy(), and testMove().

Here is the call graph for this function:


Variable Documentation

const bool TEST_WARNING = false

Referenced by testChildren(), and testTreeTraversal().


Generated on 1 Jul 2015 for MOOSE by  doxygen 1.6.1