xref: /petsc/include/petsc/private/logimpldeprecated.h (revision 6d8694c4fbab79f9439f1ad13c0386ba7ee1ca4b)
1 #pragma once
2 
3 #include <petscsystypes.h>
4 #include <petsclogtypes.h>
5 #include <petsclogdeprecated.h>
6 #include <petscconf.h>
7 
8 /* MANSEC = Sys */
9 /* SUBMANSEC = Log */
10 
11 /*@C
12   PetscClassPerfInfoClear - Deprecated.
13 
14   Level: deprecated
15 
16   Note:
17   Performance data is now controlled by `PetscLogHandler`s.  Only the default log handler (`PetscLogBeginDefault()`) exposes event performance information with
18   `PetscLogEventGetPerfInfo()`.
19 
20 .seealso: [](ch_profiling)
21 @*/
PetscLogClassPerfInfoClear(PetscClassPerfInfo * a)22 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "PetscMemzero()", ) static inline PetscErrorCode PetscLogClassPerfInfoClear(PetscClassPerfInfo *a)
23 {
24   return PetscMemzero(a, sizeof(*a));
25 }
26 
27 /*@C
28   PetscClassPerfLogCreate - Deprecated.
29 
30   Level: deprecated
31 
32   Note:
33   Performance data is now controlled by `PetscLogHandler`s.  Only the default log handler (`PetscLogBeginDefault()`) exposes event performance information with
34   `PetscLogEventGetPerfInfo()`.
35 
36 .seealso: [](ch_profiling)
37 @*/
PetscLogClassPerfLogCreate(PetscClassPerfLog * a)38 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscClassPerfLog is no longer used.") static inline PetscErrorCode PetscLogClassPerfLogCreate(PetscClassPerfLog *a)
39 {
40   *a = NULL;
41   return PETSC_SUCCESS;
42 }
43 
44 /*@C
45   PetscClassPerfLogCreate - Deprecated.
46 
47   Level: deprecated
48 
49   Note:
50   Performance data is now controlled by `PetscLogHandler`s.  Only the default log handler (`PetscLogBeginDefault()`) exposes event performance information with
51   `PetscLogEventGetPerfInfo()`.
52 
53 .seealso: [](ch_profiling)
54 @*/
PetscLogClassPerfLogDestroy(PetscClassPerfLog a)55 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscClassPerfLog is no longer used.") static inline PetscErrorCode PetscLogClassPerfLogDestroy(PetscClassPerfLog a)
56 {
57   (void)a;
58   return PETSC_SUCCESS;
59 }
60 
61 /*@C
62   PetscClassPerfLogEnsureSize - Deprecated.
63 
64   Level: deprecated
65 
66   Note:
67   Performance data is now controlled by `PetscLogHandler`s.  Only the default log handler (`PetscLogBeginDefault()`) exposes event performance information with
68   `PetscLogEventGetPerfInfo()`.
69 
70 .seealso: [](ch_profiling)
71 @*/
PetscClassPerfLogEnsureSize(PetscClassPerfLog a,int b)72 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscClassPerfLog is no longer used.") static inline PetscErrorCode PetscClassPerfLogEnsureSize(PetscClassPerfLog a, int b)
73 {
74   (void)a;
75   (void)b;
76   return PETSC_SUCCESS;
77 }
78 
79 /*@C
80   PetscClassRegInfoDestroy - Deprecated.
81 
82   Level: deprecated
83 
84   Note:
85   Registration data for logging is now controlled by `PetscLogState`.
86 
87 .seealso: [](ch_profiling)
88 @*/
PetscClassRegInfoDestroy(PetscClassRegInfo * c)89 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscClassRegInfo is no longer used.") static inline PetscErrorCode PetscClassRegInfoDestroy(PetscClassRegInfo *c)
90 {
91   (void)c;
92   return PETSC_SUCCESS;
93 }
94 
95 /*@C
96   PetscClassRegLogCreate - Deprecated.
97 
98   Level: deprecated
99 
100   Note:
101   Registration data for logging is now controlled by `PetscLogState`.
102 
103 .seealso: [](ch_profiling)
104 @*/
PetscClassRegLogCreate(PetscClassRegLog * c)105 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscClassRegLog is no longer used.") static inline PetscErrorCode PetscClassRegLogCreate(PetscClassRegLog *c)
106 {
107   *c = NULL;
108   return PETSC_SUCCESS;
109 }
110 
111 /*@C
112   PetscClassRegLogDestroy - Deprecated.
113 
114   Level: deprecated
115 
116   Note:
117   Registration data for logging is now controlled by `PetscLogState`.
118 
119 .seealso: [](ch_profiling)
120 @*/
PetscClassRegLogDestroy(PetscClassRegLog c)121 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscClassRegLog is no longer used.") static inline PetscErrorCode PetscClassRegLogDestroy(PetscClassRegLog c)
122 {
123   (void)c;
124   return PETSC_SUCCESS;
125 }
126 
127 /*@C
128   PetscClassRegLogGetClass - Deprecated.
129 
130   Level: deprecated
131 
132   Note:
133   Registration data for logging is now controlled by `PetscLogState`.
134 
135 .seealso: [](ch_profiling), `PetscLogStateGetClassFromClassId()`
136 @*/
PetscClassRegLogGetClass(PetscClassRegLog c,PetscClassId d,int * e)137 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscClassRegLog is no longer used.") static inline PetscErrorCode PetscClassRegLogGetClass(PetscClassRegLog c, PetscClassId d, int *e)
138 {
139   (void)c;
140   (void)d;
141   *e = -1;
142   return PETSC_SUCCESS;
143 }
144 
145 /*@C
146   PetscClassRegLogRegister - Deprecated.
147 
148   Level: deprecated
149 
150   Note:
151   Registration data for logging is now controlled by `PetscLogState`.
152 
153 .seealso: [](ch_profiling), `PetscLogStateClassRegister()`
154 @*/
PetscClassRegLogRegister(PetscClassRegLog a,const char * b,PetscClassId c)155 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscClassRegLog is no longer used.") static inline PetscErrorCode PetscClassRegLogRegister(PetscClassRegLog a, const char *b, PetscClassId c)
156 {
157   (void)a;
158   (void)b;
159   (void)c;
160   return PETSC_SUCCESS;
161 }
162 
163 /*MC
164   PetscEventPerfInfoAdd - Deprecated.
165 
166   Level: deprecated
167 
168   Note:
169   `PetscEventPerfInfo` is data obtained from the default log handler with `PetscLogEventGetPerfInfo()`.  It is now "plain old data":
170   PETSc provides no functions for its manipulation.
171 
172 .seealso: [](ch_profiling), `PetscEventPerfInfo`
173 M*/
174 
175 /*@C
176   PetscEventPerfInfoClear - Deprecated.
177 
178   Level: deprecated
179 
180   Note:
181   `PetscEventPerfInfo` is data obtained from the default log handler with `PetscLogEventGetPerfInfo()`.  It is now "plain old data":
182   PETSc provides no functions for its manipulation.
183 
184 .seealso: [](ch_profiling), `PetscEventPerfInfo`
185 @*/
PetscEventPerfInfoClear(PetscEventPerfInfo * a)186 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "PetscMemzero()", ) static inline PetscErrorCode PetscEventPerfInfoClear(PetscEventPerfInfo *a)
187 {
188   return PetscMemzero(a, sizeof(*a));
189 }
190 
191 /*@C
192   PetscEventPerfInfoCopy - Deprecated.
193 
194   Level: deprecated
195 
196   Note:
197   `PetscEventPerfInfo` is data obtained from the default log handler with `PetscLogEventGetPerfInfo()`.  It is now "plain old data":
198   PETSc provides no functions for its manipulation.
199 
200 .seealso: [](ch_profiling), `PetscEventPerfInfo`
201 @*/
PetscEventPerfInfoCopy(PetscEventPerfInfo * a,PetscEventPerfInfo * b)202 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "PetscMemcpy()", ) static inline PetscErrorCode PetscEventPerfInfoCopy(PetscEventPerfInfo *a, PetscEventPerfInfo *b)
203 {
204   return PetscMemcpy(a, b, sizeof(*a));
205 }
206 
207 /*@C
208   PetscEventPerfLogActivate - Deprecated.
209 
210   Level: deprecated
211 
212   Note:
213   Performance data is now controlled by `PetscLogHandler`s.  Only the default log handler (`PetscLogBeginDefault()`) exposes event performance information with
214   `PetscLogEventGetPerfInfo()`.
215 
216 .seealso: [](ch_profiling)
217 @*/
PetscEventPerfLogActivate(PetscEventPerfLog a,PetscLogEvent b)218 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscEventPerfLog is no longer used.") static inline PetscErrorCode PetscEventPerfLogActivate(PetscEventPerfLog a, PetscLogEvent b)
219 {
220   (void)a;
221   (void)b;
222   return PETSC_SUCCESS;
223 }
224 
225 /*@C
226   PetscEventPerfLogActivateClass - Deprecated.
227 
228   Level: deprecated
229 
230   Note:
231   Performance data is now controlled by `PetscLogHandler`s.  Only the default log handler (`PetscLogBeginDefault()`) exposes event performance information with
232   `PetscLogEventGetPerfInfo()`.
233 
234 .seealso: [](ch_profiling)
235 @*/
PetscEventPerfLogActivateClass(PetscEventPerfLog a,PetscEventRegLog b,PetscClassId c)236 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscEventPerfLog is no longer used.") static inline PetscErrorCode PetscEventPerfLogActivateClass(PetscEventPerfLog a, PetscEventRegLog b, PetscClassId c)
237 {
238   (void)a;
239   (void)b;
240   (void)c;
241   return PETSC_SUCCESS;
242 }
243 
244 /*@C
245   PetscEventPerfLogCreate - Deprecated
246 
247   Level: deprecated
248 
249   Note:
250   Performance data is now controlled by `PetscLogHandler`s.  Only the default log handler (`PetscLogBeginDefault()`) exposes event performance information with
251   `PetscLogEventGetPerfInfo()`.
252 
253 .seealso: [](ch_profiling)
254 @*/
PetscEventPerfLogCreate(PetscEventPerfLog * a)255 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscEventPerfLog is no longer used.") static inline PetscErrorCode PetscEventPerfLogCreate(PetscEventPerfLog *a)
256 {
257   *a = NULL;
258   return PETSC_SUCCESS;
259 }
260 
261 /*@C
262   PetscEventPerfLogDeactivate - Deprecated
263 
264   Level: deprecated
265 
266   Note:
267   Performance data is now controlled by `PetscLogHandler`s.  Only the default log handler (`PetscLogBeginDefault()`) exposes event performance information with
268   `PetscLogEventGetPerfInfo()`.
269 
270 .seealso: [](ch_profiling)
271 @*/
PetscEventPerfLogDeactivate(PetscEventPerfLog a,PetscLogEvent b)272 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscEventPerfLog is no longer used.") static inline PetscErrorCode PetscEventPerfLogDeactivate(PetscEventPerfLog a, PetscLogEvent b)
273 {
274   (void)a;
275   (void)b;
276   return PETSC_SUCCESS;
277 }
278 
279 /*@C
280   PetscEventPerfLogDeactivateClass - Deprecated
281 
282   Level: deprecated
283 
284   Note:
285   Performance data is now controlled by `PetscLogHandler`s.  Only the default log handler (`PetscLogBeginDefault()`) exposes event performance information with
286   `PetscLogEventGetPerfInfo()`.
287 
288 .seealso: [](ch_profiling)
289 @*/
PetscEventPerfLogDeactivateClass(PetscEventPerfLog a,PetscEventRegLog b,PetscClassId c)290 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscEventPerfLog is no longer used.") static inline PetscErrorCode PetscEventPerfLogDeactivateClass(PetscEventPerfLog a, PetscEventRegLog b, PetscClassId c)
291 {
292   (void)a;
293   (void)b;
294   (void)c;
295   return PETSC_SUCCESS;
296 }
297 
298 /*@C
299   PetscEventPerfLogDeactivatePop - Deprecated
300 
301   Level: deprecated
302 
303   Note:
304   Performance data is now controlled by `PetscLogHandler`s.  Only the default log handler (`PetscLogBeginDefault()`) exposes event performance information with
305   `PetscLogEventGetPerfInfo()`.
306 
307 .seealso: [](ch_profiling)
308 @*/
PetscEventPerfLogDeactivatePop(PetscEventPerfLog a,PetscLogEvent b)309 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscEventPerfLog is no longer used.") static inline PetscErrorCode PetscEventPerfLogDeactivatePop(PetscEventPerfLog a, PetscLogEvent b)
310 {
311   (void)a;
312   (void)b;
313   return PETSC_SUCCESS;
314 }
315 
316 /*@C
317   PetscEventPerfLogDeactivatePush - Deprecated
318 
319   Level: deprecated
320 
321   Note:
322   Performance data is now controlled by `PetscLogHandler`s.  Only the default log handler (`PetscLogBeginDefault()`) exposes event performance information with
323   `PetscLogEventGetPerfInfo()`.
324 
325 .seealso: [](ch_profiling)
326 @*/
PetscEventPerfLogDeactivatePush(PetscEventPerfLog a,PetscLogEvent b)327 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscEventPerfLog is no longer used.") static inline PetscErrorCode PetscEventPerfLogDeactivatePush(PetscEventPerfLog a, PetscLogEvent b)
328 {
329   (void)a;
330   (void)b;
331   return PETSC_SUCCESS;
332 }
333 
334 /*@C
335   PetscEventPerfLogDestroy - Deprecated
336 
337   Level: deprecated
338 
339   Note:
340   Performance data is now controlled by `PetscLogHandler`s.  Only the default log handler (`PetscLogBeginDefault()`) exposes event performance information with
341   `PetscLogEventGetPerfInfo()`.
342 
343 .seealso: [](ch_profiling)
344 @*/
PetscEventPerfLogDestroy(PetscEventPerfLog a)345 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscEventPerfLog is no longer used.") static inline PetscErrorCode PetscEventPerfLogDestroy(PetscEventPerfLog a)
346 {
347   (void)a;
348   return PETSC_SUCCESS;
349 }
350 
351 /*@C
352   PetscEventPerfLogEnsureSize - Deprecated
353 
354   Level: deprecated
355 
356   Note:
357   Performance data is now controlled by `PetscLogHandler`s.  Only the default log handler (`PetscLogBeginDefault()`) exposes event performance information with
358   `PetscLogEventGetPerfInfo()`.
359 
360 .seealso: [](ch_profiling)
361 @*/
PetscEventPerfLogEnsureSize(PetscEventPerfLog a,int b)362 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscEventPerfLog is no longer used.") static inline PetscErrorCode PetscEventPerfLogEnsureSize(PetscEventPerfLog a, int b)
363 {
364   (void)a;
365   (void)b;
366   return PETSC_SUCCESS;
367 }
368 
369 /*@C
370   PetscEventPerfLogGetVisible - Deprecated
371 
372   Level: deprecated
373 
374   Note:
375   Performance data is now controlled by `PetscLogHandler`s.  Only the default log handler (`PetscLogBeginDefault()`) exposes event performance information with
376   `PetscLogEventGetPerfInfo()`.
377 
378 .seealso: [](ch_profiling)
379 @*/
PetscEventPerfLogGetVisible(PetscEventPerfLog a,PetscLogEvent b,PetscBool * c)380 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscEventPerfLog is no longer used.") static inline PetscErrorCode PetscEventPerfLogGetVisible(PetscEventPerfLog a, PetscLogEvent b, PetscBool *c)
381 {
382   (void)a;
383   (void)b;
384   *c = PETSC_TRUE;
385   return PETSC_SUCCESS;
386 }
387 
388 /*@C
389   PetscEventPerfLogSetVisible - Deprecated
390 
391   Level: deprecated
392 
393   Note:
394   Performance data is now controlled by `PetscLogHandler`s.  Only the default log handler (`PetscLogBeginDefault()`) exposes event performance information with
395   `PetscLogEventGetPerfInfo()`.
396 
397 .seealso: [](ch_profiling)
398 @*/
PetscEventPerfLogSetVisible(PetscEventPerfLog a,PetscLogEvent b,PetscBool c)399 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscEventPerfLog is no longer used.") static inline PetscErrorCode PetscEventPerfLogSetVisible(PetscEventPerfLog a, PetscLogEvent b, PetscBool c)
400 {
401   (void)a;
402   (void)b;
403   (void)c;
404   return PETSC_SUCCESS;
405 }
406 
407 /*@C
408   PetscEventRegLogCreate - Deprecated
409 
410   Level: deprecated
411 
412   Note:
413   Registration data for logging is now controlled by `PetscLogState`.
414 
415 .seealso: [](ch_profiling)
416 @*/
PetscEventRegLogCreate(PetscEventRegLog * a)417 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscEventRegLog is no longer used.") static inline PetscErrorCode PetscEventRegLogCreate(PetscEventRegLog *a)
418 {
419   *a = NULL;
420   return PETSC_SUCCESS;
421 }
422 
423 /*@C
424   PetscEventRegLogDestroy - Deprecated
425 
426   Level: deprecated
427 
428   Note:
429   Registration data for logging is now controlled by `PetscLogState`.
430 
431 .seealso: [](ch_profiling)
432 @*/
PetscEventRegLogDestroy(PetscEventRegLog a)433 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscEventRegLog is no longer used.") static inline PetscErrorCode PetscEventRegLogDestroy(PetscEventRegLog a)
434 {
435   (void)a;
436   return PETSC_SUCCESS;
437 }
438 
439 /*@C
440   PetscEventRegLogGetEvent - Deprecated
441 
442   Level: deprecated
443 
444   Note:
445   Registration data for logging is now controlled by `PetscLogState`.
446 
447 .seealso: [](ch_profiling), `PetscLogEventGetId()`
448 @*/
PetscEventRegLogGetEvent(PetscEventRegLog a,const char * b,PetscLogEvent * c)449 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscEventRegLog is no longer used.") static inline PetscErrorCode PetscEventRegLogGetEvent(PetscEventRegLog a, const char *b, PetscLogEvent *c)
450 {
451   (void)a;
452   (void)b;
453   *c = -1;
454   return PETSC_SUCCESS;
455 }
456 
457 /*@C
458   PetscEventRegLogRegister - Deprecated
459 
460   Level: deprecated
461 
462   Note:
463   Registration data for logging is now controlled by `PetscLogState`.
464 
465 .seealso: [](ch_profiling), `PetscLogEventRegister()`
466 @*/
PetscEventRegLogRegister(PetscEventRegLog a,const char * b,PetscClassId c,PetscLogEvent * d)467 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscEventRegLog is no longer used.") static inline PetscErrorCode PetscEventRegLogRegister(PetscEventRegLog a, const char *b, PetscClassId c, PetscLogEvent *d)
468 {
469   (void)a;
470   (void)b;
471   (void)c;
472   *d = -1;
473   return PETSC_SUCCESS;
474 }
475 
476 /*MC
477   PetscLogMPEGetRGBColor - Deprecated.
478 
479   Level: deprecated
480 
481 .seealso: [](ch_profiling)
482 M*/
483 
484 /*MC
485   PetscStageInfoDestroy - Deprecated.
486 
487   Level: deprecated
488 
489   Note:
490   Registration data for logging is now controlled by `PetscLogState`.
491 
492 .seealso: [](ch_profiling)
493 M*/
494 
495 /*MC
496   PetscStageLogGetEventPerfLog - Deprecated.
497 
498   Level: deprecated
499 
500   Note:
501   PETSc performance logging and profiling is now split up between the logging state (`PetscLogState`) and the log handler (`PetscLogHandler`).
502   The global logging state is obtained with `PetscLogGetState()`; many log handlers may be used at once (`PetscLogHandlerStart()`) and the default log handler is not directly accessible.
503 
504 .seealso: [](ch_profiling), `PetscLogEventGetPerfInfo()`
505 M*/
506 
507 /*@C
508   PetscStageLogCreate - Deprecated
509 
510   Level: deprecated
511 
512   Note:
513   PETSc performance logging and profiling is now split up between the logging state (`PetscLogState`) and the log handler (`PetscLogHandler`).
514   The global logging state is obtained with `PetscLogGetState()`; many log handlers may be used at once (`PetscLogHandlerStart()`) and the default log handler is not directly accessible.
515 
516 .seealso: [](ch_profiling)
517 @*/
PetscStageLogCreate(PetscStageLog * a)518 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscStageLog is no longer used.") static inline PetscErrorCode PetscStageLogCreate(PetscStageLog *a)
519 {
520   *a = NULL;
521   return PETSC_SUCCESS;
522 }
523 
524 /*@C
525   PetscStageLogDestroy - Deprecated
526 
527   Level: deprecated
528 
529   Note:
530   PETSc performance logging and profiling is now split up between the logging state (`PetscLogState`) and the log handler (`PetscLogHandler`).
531   The global logging state is obtained with `PetscLogGetState()`; many log handlers may be used at once (`PetscLogHandlerStart()`) and the default log handler is not directly accessible.
532 
533 .seealso: [](ch_profiling)
534 @*/
PetscStageLogDestroy(PetscStageLog a)535 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscStageLog is no longer used.") static inline PetscErrorCode PetscStageLogDestroy(PetscStageLog a)
536 {
537   (void)a;
538   return PETSC_SUCCESS;
539 }
540 
541 /*@C
542   PetscStageLogGetActive - Deprecated
543 
544   Level: deprecated
545 
546   Note:
547   PETSc performance logging and profiling is now split up between the logging state (`PetscLogState`) and the log handler (`PetscLogHandler`).
548   The global logging state is obtained with `PetscLogGetState()`; many log handlers may be used at once (`PetscLogHandlerStart()`) and the default log handler is not directly accessible.
549 
550 .seealso: [](ch_profiling)
551 @*/
PetscStageLogGetActive(PetscStageLog a,int b,PetscBool * c)552 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscStageLog is no longer used.") static inline PetscErrorCode PetscStageLogGetActive(PetscStageLog a, int b, PetscBool *c)
553 {
554   (void)a;
555   (void)b;
556   *c = PETSC_TRUE;
557   return PETSC_SUCCESS;
558 }
559 
560 /*@C
561   PetscStageLogGetClassPerfLog - Deprecated
562 
563   Level: deprecated
564 
565   Note:
566   PETSc performance logging and profiling is now split up between the logging state (`PetscLogState`) and the log handler (`PetscLogHandler`).
567   The global logging state is obtained with `PetscLogGetState()`; many log handlers may be used at once (`PetscLogHandlerStart()`) and the default log handler is not directly accessible.
568 
569 .seealso: [](ch_profiling)
570 @*/
PetscStageLogGetClassPerfLog(PetscStageLog a,int b,PetscClassPerfLog * c)571 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscStageLog is no longer used.") static inline PetscErrorCode PetscStageLogGetClassPerfLog(PetscStageLog a, int b, PetscClassPerfLog *c)
572 {
573   (void)a;
574   (void)b;
575   *c = NULL;
576   return PETSC_SUCCESS;
577 }
578 
579 /*@C
580   PetscStageLogGetClassRegLog - Deprecated
581 
582   Level: deprecated
583 
584   Note:
585   PETSc performance logging and profiling is now split up between the logging state (`PetscLogState`) and the log handler (`PetscLogHandler`).
586   The global logging state is obtained with `PetscLogGetState()`; many log handlers may be used at once (`PetscLogHandlerStart()`) and the default log handler is not directly accessible.
587 
588 .seealso: [](ch_profiling)
589 @*/
PetscStageLogGetClassRegLog(PetscStageLog a,PetscClassRegLog * c)590 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscStageLog is no longer used.") static inline PetscErrorCode PetscStageLogGetClassRegLog(PetscStageLog a, PetscClassRegLog *c)
591 {
592   (void)a;
593   *c = NULL;
594   return PETSC_SUCCESS;
595 }
596 
597 /*@C
598   PetscStageLogGetEventRegLog - Deprecated
599 
600   Level: deprecated
601 
602   Note:
603   PETSc performance logging and profiling is now split up between the logging state (`PetscLogState`) and the log handler (`PetscLogHandler`).
604   The global logging state is obtained with `PetscLogGetState()`; many log handlers may be used at once (`PetscLogHandlerStart()`) and the default log handler is not directly accessible.
605 
606 .seealso: [](ch_profiling)
607 @*/
PetscStageLogGetEventRegLog(PetscStageLog a,PetscEventRegLog * c)608 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscStageLog is no longer used.") static inline PetscErrorCode PetscStageLogGetEventRegLog(PetscStageLog a, PetscEventRegLog *c)
609 {
610   (void)a;
611   *c = NULL;
612   return PETSC_SUCCESS;
613 }
614 
615 /*@C
616   PetscStageLogGetStage - Deprecated
617 
618   Level: deprecated
619 
620   Note:
621   PETSc performance logging and profiling is now split up between the logging state (`PetscLogState`) and the log handler (`PetscLogHandler`).
622   The global logging state is obtained with `PetscLogGetState()`; many log handlers may be used at once (`PetscLogHandlerStart()`) and the default log handler is not directly accessible.
623 
624 .seealso: [](ch_profiling)
625 @*/
PetscStageLogGetStage(PetscStageLog a,const char * b,PetscLogStage * c)626 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscStageLog is no longer used.") static inline PetscErrorCode PetscStageLogGetStage(PetscStageLog a, const char *b, PetscLogStage *c)
627 {
628   (void)a;
629   (void)b;
630   *c = -1;
631   return PETSC_SUCCESS;
632 }
633 
634 /*@C
635   PetscStageLogGetVisible - Deprecated
636 
637   Level: deprecated
638 
639   Note:
640   PETSc performance logging and profiling is now split up between the logging state (`PetscLogState`) and the log handler (`PetscLogHandler`).
641   The global logging state is obtained with `PetscLogGetState()`; many log handlers may be used at once (`PetscLogHandlerStart()`) and the default log handler is not directly accessible.
642 
643 .seealso: [](ch_profiling)
644 @*/
PetscStageLogGetVisible(PetscStageLog a,int b,PetscBool * c)645 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscStageLog is no longer used.") static inline PetscErrorCode PetscStageLogGetVisible(PetscStageLog a, int b, PetscBool *c)
646 {
647   (void)a;
648   (void)b;
649   *c = PETSC_TRUE;
650   return PETSC_SUCCESS;
651 }
652 
653 /*@C
654   PetscStageLogPop - Deprecated
655 
656   Level: deprecated
657 
658   Note:
659   PETSc performance logging and profiling is now split up between the logging state (`PetscLogState`) and the log handler (`PetscLogHandler`).
660   The global logging state is obtained with `PetscLogGetState()`; many log handlers may be used at once (`PetscLogHandlerStart()`) and the default log handler is not directly accessible.
661 
662 .seealso: [](ch_profiling)
663 @*/
PetscStageLogPop(PetscStageLog a)664 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscStageLog is no longer used.") static inline PetscErrorCode PetscStageLogPop(PetscStageLog a)
665 {
666   (void)a;
667   return PETSC_SUCCESS;
668 }
669 
670 /*@C
671   PetscStageLogPush - Deprecated
672 
673   Level: deprecated
674 
675 .seealso: [](ch_profiling)
676 @*/
PetscStageLogPush(PetscStageLog a,int b)677 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscStageLog is no longer used.") static inline PetscErrorCode PetscStageLogPush(PetscStageLog a, int b)
678 {
679   (void)a;
680   (void)b;
681   return PETSC_SUCCESS;
682 }
683 
684 /*@C
685   PetscStageLogRegister - Deprecated
686 
687   Level: deprecated
688 
689 .seealso: [](ch_profiling)
690 @*/
PetscStageLogRegister(PetscStageLog a,const char * b,int * c)691 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscStageLog is no longer used.") static inline PetscErrorCode PetscStageLogRegister(PetscStageLog a, const char *b, int *c)
692 {
693   (void)a;
694   (void)b;
695   *c = -1;
696   return PETSC_SUCCESS;
697 }
698 
699 /*@C
700   PetscStageLogSetActive - Deprecated
701 
702   Level: deprecated
703 
704 .seealso: [](ch_profiling)
705 @*/
PetscStageLogSetActive(PetscStageLog a,int b,PetscBool c)706 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscStageLog is no longer used.") static inline PetscErrorCode PetscStageLogSetActive(PetscStageLog a, int b, PetscBool c)
707 {
708   (void)a;
709   (void)b;
710   (void)c;
711   return PETSC_SUCCESS;
712 }
713 
714 /*@C
715   PetscStageLogSetVisible - Deprecated
716 
717   Level: deprecated
718 
719 .seealso: [](ch_profiling)
720 @*/
PetscStageLogSetVisible(PetscStageLog a,int b,PetscBool c)721 PETSC_DEPRECATED_FUNCTION(3, 20, 0, "nothing", "PetscStageLog is no longer used.") static inline PetscErrorCode PetscStageLogSetVisible(PetscStageLog a, int b, PetscBool c)
722 {
723   (void)a;
724   (void)b;
725   (void)c;
726   return PETSC_SUCCESS;
727 }
728