本文整理汇总了C++中UserInterface::addCmd方法的典型用法代码示例。如果您正苦于以下问题:C++ UserInterface::addCmd方法的具体用法?C++ UserInterface::addCmd怎么用?C++ UserInterface::addCmd使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserInterface
的用法示例。
在下文中一共展示了UserInterface::addCmd方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//.........这里部分代码省略.........
cout << "<nodename> " << un.nodename << " </nodename>" << endl;
}
cout << "<start_time> " << isodate() << " </start_time>" << endl;
}
#ifdef HAVE_BGQLIBS
Personality_t pers;
Kernel_GetPersonality(&pers, sizeof(pers));
const int nTDim = 5;
vector<int> torusdim(nTDim);
torusdim[0] = pers.Network_Config.Anodes;
torusdim[1] = pers.Network_Config.Bnodes;
torusdim[2] = pers.Network_Config.Cnodes;
torusdim[3] = pers.Network_Config.Dnodes;
torusdim[4] = pers.Network_Config.Enodes;
if ( ctxt.oncoutpe() )
cout << "BG/Q torus dimensions: " << torusdim[0] << " x " << torusdim[1] << " x " << torusdim[2]
<< " x " << torusdim[3] << " x " << torusdim[4] << endl;
#endif
Sample* s = new Sample(ctxt);
//store timing for run_timer
s->ctrl.time_init = MPI_Wtime();
s->ctrl.timer_hit = false;
s->ctrl.timer_mdsavecmd = false;
s->ctrl.timer_savecmd = false;
s->ctrl.timer_savesyscmd = false;
UserInterface* ui = new UserInterface(ctxt);
ui->addCmd(new AtomCmd(s));
ui->addCmd(new MMAtomCmd(s));
ui->addCmd(new HelpCmd(s));
ui->addCmd(new ListAtomsCmd(s));
ui->addCmd(new ListSpeciesCmd(s));
ui->addCmd(new LoadCmd(s));
ui->addCmd(new PrintCmd(s));
ui->addCmd(new PromoteOccCmd(s));
ui->addCmd(new QuitCmd(s));
ui->addCmd(new RandomizeWfCmd(s));
ui->addCmd(new RandomizeRealWfCmd(s));
ui->addCmd(new RandomizeVelCmd(s));
ui->addCmd(new RunCmd(s));
ui->addCmd(new MDSaveCmd(s));
ui->addCmd(new SaveCmd(s));
ui->addCmd(new SavesysCmd(s));
ui->addCmd(new SavedenCmd(s));
ui->addCmd(new SaveESPCmd(s));
ui->addCmd(new SetCmd(s));
ui->addCmd(new SpeciesCmd(s));
ui->addCmd(new MMSpeciesCmd(s));
ui->addCmd(new EmpiricalPotentialCmd(s));
ui->addCmd(new StatusCmd(s));
ui->addCmd(new KpointCmd(s));
ui->addCmd(new SymmetryCmd(s));
ui->addCmd(new ParOptCmd(s));
ui->addCmd(new LockCmd(s));
ui->addCmd(new UnlockCmd(s));
ui->addCmd(new SetVelCmd(s));
ui->addCmd(new ComputeMLWFCmd(s));
ui->addCmd(new ConstraintCmd(s));
ui->addCmd(new ShiftWFCmd(s));
ui->addCmd(new WFPhaseRealCmd(s));