本文整理汇总了C++中UserInterface::processCmds方法的典型用法代码示例。如果您正苦于以下问题:C++ UserInterface::processCmds方法的具体用法?C++ UserInterface::processCmds怎么用?C++ UserInterface::processCmds使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserInterface
的用法示例。
在下文中一共展示了UserInterface::processCmds方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//.........这里部分代码省略.........
ui->addVar(new SmearingWidth(s));
ui->addVar(new FermiTemp(s));
ui->addVar(new Dt(s));
ui->addVar(new Nempty(s));
ui->addVar(new Nrowmax(s));
ui->addVar(new RefCell(s));
ui->addVar(new Spin(s));
ui->addVar(new Stress(s));
ui->addVar(new Thermostat(s));
ui->addVar(new ThresholdScf(s));
ui->addVar(new ThresholdForce(s));
ui->addVar(new ThresholdStress(s));
ui->addVar(new ThTemp(s));
ui->addVar(new ThTime(s));
ui->addVar(new ThWidth(s));
ui->addVar(new CenterOfMass(s));
ui->addVar(new WfDiag(s));
ui->addVar(new WfDyn(s));
ui->addVar(new WfExtrap(s));
ui->addVar(new Xc(s));
ui->addVar(new Nparallelkpts(s));
ui->addVar(new Nkpoints(s));
ui->addVar(new IPrint(s));
ui->addVar(new CellStepFreq(s));
ui->addVar(new EnthalpyPressure(s));
ui->addVar(new EnthalpyThreshold(s));
ui->addVar(new HugoniostatVar(s));
ui->addVar(new HugDeltaTemp(s));
ui->addVar(new HugFreq(s));
ui->addVar(new RunTimer(s));
ui->addVar(new HubbardU(s));
ui->addVar(new Memory(s));
ui->addVar(new MatrixLoc(s));
ui->addVar(new Pblock(s));
ui->addVar(new MDIter(s));
ui->addVar(new Force_Complex_WF(s));
ui->addVar(new Non_Selfconsistent_Energy_Output(s));
ui->addVar(new TDDt(s));
ui->addVar(new NA_overlaps(s));
ui->addVar(new WF_Phase_RealVar(s));
ui->addVar(new SaveFreq(s));
ui->addVar(new SaveDenFreq(s));
ui->addVar(new SaveWfFreq(s));
ui->addVar(new NetCharge(s));
ui->addVar(new EsmBC(s));
ui->addVar(new EsmW(s));
ui->addVar(new FcpThermostat(s));
ui->addVar(new FcpThTemp(s));
ui->addVar(new FcpThTime(s));
ui->addVar(new FcpThWidth(s));
ui->addVar(new FcpPmass(s));
ui->addVar(new FcpMu(s));
#ifdef USE_JAGGEMM
setup_grid();
#endif
if ( argc == 2 )
{
// input file was given as a command line argument
bool echo = true;
ifstream in;
if ( ctxt.oncoutpe() )
{
in.open(argv[1],ios::in);
}
ui->processCmds(in, "[qball]", echo, /*interactive =*/ false);
}
else
{
// use standard input
bool echo = !isatty(0);
ui->processCmds(cin, "[qball]", echo);
}
// exit using the quit command when a encountering EOF in a script
Cmd *c = ui->findCmd("quit");
c->action(1,NULL);
if ( ctxt.oncoutpe() )
{
cout << "<real_time> " << tm.real() << " </real_time>" << endl;
cout << "<end_time> " << isodate() << " </end_time>" << endl;
cout << "</qbox:simulation>" << endl;
}
} // end of Context scope
TAU_PROFILE_STOP(timer);
#if USE_APC
ApcFinalize();
#endif
#ifdef USE_OLD_CTF
CTF_exit();
#endif
#if USE_MPI
MPI_Finalize();
#endif
return 0;
}