MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / rootPrint

Function rootPrint

examples/isolated/reporting_matrices.cpp:17–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16
17void rootPrint(qindex num) {
18
19 if (getQuESTEnv().rank != 0)
20 return;
21
22 std::cout << "\n\n>> set number of reported items to " << num;
23
24 if (num == 0)
25 std::cout << " (which means report all)";
26
27 std::cout << "\n" << std::endl; // flush
28}
29
30
31

Callers 3

demo_CompMatrFunction · 0.70
demo_DiagMatrFunction · 0.70
demo_FullStateDiagMatrFunction · 0.70

Calls 1

getQuESTEnvFunction · 0.85

Tested by

no test coverage detected