Peano
Loading...
Searching...
No Matches
otter.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
5#include "config.h"
6
103namespace otter {
104 namespace label {
105 // If Otter is not used these constants are unused and therefore the compiler warns
106 [[maybe_unused]] static const char* step = "[STEP TASK]";
107 } // namespace label
108
109 namespace phase {
110 [[maybe_unused]] static const char* init = "init";
111 [[maybe_unused]] static const char* plot = "plot";
112 [[maybe_unused]] static const char* timestep = "time-step";
113 [[maybe_unused]] static const char* create_grid = "create-grid";
114 [[maybe_unused]] static const char* create_grid_no_refine = "create-grid-but-postpone-refinement";
115 [[maybe_unused]] static const char* create_grid_converge = "create-grid-and-converge-load-balancing";
116 } // namespace phase
117} // namespace otter
118
119#if defined(UseOtter)
120#include <otter/otter-task-graph-user.h>
121#else
122
123#define OTTER_UTIL_ASSERT(...)
124#define OTTER_INITIALISE()
125#define OTTER_FINALISE()
126#define OTTER_DECLARE_HANDLE(...)
127#define OTTER_INIT_TASK(...)
128#define OTTER_DEFINE_TASK(...)
129#define OTTER_POOL_ADD(...)
130#define OTTER_POOL_POP(...)
131#define OTTER_POOL_DECL_POP(...)
132#define OTTER_POOL_BORROW(...)
133#define OTTER_POOL_DECL_BORROW(...)
134#define OTTER_POOL_SIZE(...)
135#define OTTER_TASK_START(...)
136#define OTTER_TASK_END(...)
137#define OTTER_TASK_WAIT_START(...)
138#define OTTER_TASK_WAIT_END(...)
139#define OTTER_TASK_YIELD_START(...)
140#define OTTER_TASK_YIELD_END(...)
141#define OTTER_TASK_WAIT_IMPLICIT(...)
142#define OTTER_PHASE_BEGIN(...)
143#define OTTER_PHASE_END(...)
144#define OTTER_PHASE_SWITCH(...)
145
146#endif
static const char * step
Definition otter.h:106
static const char * create_grid
Definition otter.h:113
static const char * init
Definition otter.h:110
static const char * timestep
Definition otter.h:112
static const char * create_grid_converge
Definition otter.h:115
static const char * create_grid_no_refine
Definition otter.h:114
Definition otter.h:103
-lift-drop-statistics