DBG0 示例代码

2022-03-03

以下示例是关于cpp中包含DBG0用法的示例代码,想了解DBG0的具体用法?DBG0怎么用?DBG0使用的例子?那么可以参考以下10个相关示例代码来学习它的具体使用方法。

示例1:
lv2guihost.cpp开发语言: C++项目名称: lv2-ll-plugins代码行数: 245
60  if (!module) {
61    DBG0("Could not load "<<gui_path<<": "<<dlerror());
62    return;
68  if (!func) {
69    DBG0("Could not find symbol lv2ui_descriptor in "<<gui_path);
70    return;
78  if (!m_desc) {
79    DBG0(gui_path<<" did not contain the plugin GUI "<<gui_uri);
80    return;
111  if (!m_ui || !m_cwidget) {
112    DBG0("Could not create an UI instance");
113    m_desc = 0;
201    else
202      DBG0("GUI requested write to input port "<<index<<
203	   " in unknown format "<<format);
示例2:
mydriver.cc开发语言: C++项目名称: bbanerjee代码行数: 446
81DebugStream dbg("DEBUG",true);
82DebugStream dbg0("DEBUG0",false);
83
106  /* Add the patches that this proc owns at all levels to grid */
107  dbg0 << "Adding hier patches to HYPRE grid:" << "\n";
108  for (Counter level = 0; level < numLevels; level++) {
143  dbg.setLevel(1);
144  dbg0 << "" << "\n";
145  dbg0 << "Assembled grid, "
146       << "num parts " << hypre_SStructGridNParts(grid) << "\n";
147  dbg0 << "\n";
148  funcPrint("makeGrid()",FEnd);
211  /* Add stencil entries */
212  dbg0 << "Stencil offsets:" << "\n";
213  dbg0.indent();
示例3:
main.cpp开发语言: C++项目名称: lv2-ll-plugins代码行数: 762
241  else
242    DBG0("Could not initialise LASH!");
243  
581      if (i == argc - 1) {
582        DBG0("No debug level given!");
583        return 1;
604  if (!(jack_client = jack_client_open("Elven", jack_options_t(0), 0))) {
605    DBG0("Could not initialise JACK client!");
606    return -1;
632    if (!init_lash(argc, argv, jack_get_client_name(jack_client))) {
633      DBG0("Could not initialise LASH");
634      return -1;
示例4:
Solver.cc开发语言: C++项目名称: bbanerjee代码行数: 1126
68     ((_solverID >= 40) && (_solverID < 60)));
69  dbg0 << "requiresPar = " << _requiresPar << "\n";
70
85  HYPRE_SStructMatrixCreate(MPI_COMM_WORLD, _graph, &_A);
86  dbg0 << "Created empty SStructMatrix" << "\n";
87  // Initialize RHS vector b and solution vector x
95  if (_requiresPar) {
96    dbg0 << "Matrix object type set to HYPRE_PARCSR" << "\n";
97    HYPRE_SStructMatrixSetObjectType(_A, HYPRE_PARCSR);
139  linePrint("#",60);
140  dbg0 << "Solver setup phase" << "\n";
141  linePrint("#",60);
159  linePrint("#",60);
160  dbg0 << "Solver solve phase" << "\n";
161  linePrint("#",60);
示例5:
SyncLevelTest.cpp开发语言: C++项目名称: folly代码行数: 148
110  FB_LOG(logger, DBG1) << "DBG1";
111  FB_LOG(logger, DBG0) << "DBG0";
112
130
131  FB_LOG(logger, DBG0) << "DBG0";
132  FB_LOG(logger, INFO9) << "INFO9";
示例6:
SolverAMG.cc开发语言: C++项目名称: bbanerjee代码行数: 119
64   *-----------------------------------------------------------*/
65  dbg0 << "----------------------------------------------------" << "\n";
66  dbg0 << "AMG setup phase" << "\n";
67  dbg0 << "----------------------------------------------------" << "\n";
68  HYPRE_BoomerAMGCreate(&_parSolver);
113   *-----------------------------------------------------------*/
114  dbg0 << "----------------------------------------------------" << "\n";
115  dbg0 << "Gather the solution vector" << "\n";
116  dbg0 << "----------------------------------------------------" << "\n";
117
示例7:
SolverFAC.cc开发语言: C++项目名称: bbanerjee代码行数: 198
151
152  dbg0 << "----------------------------------------------------" << "\n";
153  dbg0 << "calling FAC" << "\n";
154  dbg0 << "----------------------------------------------------" << "\n";
155  HYPRE_SStructFACSolve3(solver, _facA, _b, _x);
173   *-----------------------------------------------------------*/
174  dbg0 << "----------------------------------------------------" << "\n";
175  dbg0 << "Gather the solution vector" << "\n";
176  dbg0 << "----------------------------------------------------" << "\n";
177
示例8:
vectortest.cc开发语言: C++项目名称: bbanerjee代码行数: 83
53DebugStream dbg("DEBUG",true);
54DebugStream dbg0("DEBUG",true);
55
67  Vector<double> c = b + a;
68  dbg0 << a << "\n";
69  dbg0 << b << "\n";
70  dbg0 << c << "\n";
71  dbg0 << a - b << "\n";
79  for (Box::iterator iter = box.begin(); iter != box.end(); ++iter) {
80    dbg0 << "*iter = " << *iter << "\n";
81  }
示例9:
Hierarchy.cc开发语言: C++项目名称: bbanerjee代码行数: 390
90    /* Print procMap */
91    dbg0 << "procMap at level " << level << "\n";
92    dbg0 << procMap << "\n";
208  for (Counter level = 0; level < _levels.size(); level++) {
209    if (level > 0) dbg0 << "\n";
210    dbg0 << "Computing global patch IDs & BC info at level = "
294  serializeProcsEnd();
295  dbg0 << "\n";
296  funcPrint("Hierarchy::getPatchesFromOtherProcs()",FEnd);
示例10:
LogLevelTest.cpp开发语言: C++项目名称: folly代码行数: 165
70
71  EXPECT_EQ(LogLevel::DBG0, stringToLogLevel("dbg0"));
72  EXPECT_EQ(LogLevel::DBG5, stringToLogLevel("dbg5"));
109
110  EXPECT_EQ("DBG0", logLevelToString(LogLevel::DBG0));
111  EXPECT_EQ("DBG2", logLevelToString(LogLevel::DBG2));
140  checkLevel(LogLevel::DBG);
141  checkLevel(LogLevel::DBG0);
142  checkLevel(LogLevel::DBG1);

本文地址:https://www.itbaoku.cn/snippets/415951.html