MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / OPS_ParallelNumberer

Function OPS_ParallelNumberer

SRC/interpreter/OpenSeesCommands.cpp:3641–3661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3639}
3640
3641void* OPS_ParallelNumberer() {
3642
3643#ifdef _PARALLEL_INTERPRETERS
3644 ParallelNumberer *theParallelNumberer = 0;
3645 if (cmds == 0) return theParallelNumberer;
3646
3647 MachineBroker* machine = cmds->getMachineBroker();
3648 Channel** channels = cmds->getChannels();
3649 int numChannels = cmds->getNumChannels();
3650
3651 int rank = machine->getPID();
3652
3653 theParallelNumberer = new ParallelNumberer;
3654 theParallelNumberer->setProcessID(rank);
3655 theParallelNumberer->setChannels(numChannels, channels);
3656
3657 return theParallelNumberer;
3658#else
3659 return 0;
3660#endif
3661}
3662
3663void* OPS_ParallelDisplacementControl() {
3664#ifdef _PARALLEL_INTERPRETERS

Callers 1

OPS_NumbererFunction · 0.85

Calls 6

getMachineBrokerMethod · 0.80
getChannelsMethod · 0.80
getNumChannelsMethod · 0.80
getPIDMethod · 0.80
setProcessIDMethod · 0.45
setChannelsMethod · 0.45

Tested by

no test coverage detected