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

Function OPS_ParallelRCM

SRC/interpreter/OpenSeesCommands.cpp:3617–3639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3615}
3616
3617void* OPS_ParallelRCM() {
3618
3619#ifdef _PARALLEL_INTERPRETERS
3620 ParallelNumberer *theParallelNumberer = 0;
3621 if (cmds == 0) return theParallelNumberer;
3622
3623 MachineBroker* machine = cmds->getMachineBroker();
3624 Channel** channels = cmds->getChannels();
3625 int numChannels = cmds->getNumChannels();
3626
3627 int rank = machine->getPID();
3628
3629 RCM *theRCM = new RCM(false);
3630 theParallelNumberer = new ParallelNumberer(*theRCM);
3631 theParallelNumberer->setProcessID(rank);
3632 theParallelNumberer->setChannels(numChannels, channels);
3633
3634 return theParallelNumberer;
3635#else
3636 return 0;
3637#endif
3638
3639}
3640
3641void* OPS_ParallelNumberer() {
3642

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