Peano
Loading...
Searching...
No Matches
ComputeFirstDerivatives.h
Go to the documentation of this file.
1// This file is part of the ExaHyPE2 project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
5#include "peano4/utils/Loop.h"
6
7#include "tarch/Assertions.h"
8#include "tarch/la/Vector.h"
10
12 #if defined(GPUOffloadingOMP)
13 #pragma omp declare target
14 #endif
15
33 template <int NumberOfDofs, int NumberOfUnknowns, int NumberOfAuxiliaryVariables>
34 static inline GPUCallableMethod
35 void computeFirstDerivatives(double* const __restrict__ oldQWithHalo) InlineMethod;
36
37 template <int NumberOfDofs, int NumberOfUnknowns, int NumberOfAuxiliaryVariables>
38 static inline GPUCallableMethod
39 void extrapolateHalo(double* const __restrict__ oldQWithHalo) InlineMethod;
40
41 #if defined(GPUOffloadingOMP)
42 #pragma omp end declare target
43 #endif
44} // namespace applications::exahype2::swe
45
46#include "ComputeFirstDerivatives.cpph"
#define GPUCallableMethod
Definition accelerator.h:27
static GPUCallableMethod void extrapolateHalo(double *const __restrict__ oldQWithHalo) InlineMethod
static GPUCallableMethod void computeFirstDerivatives(double *const __restrict__ oldQWithHalo) InlineMethod
Partial derivative calculation:
#define InlineMethod
Generic identifier for inlined functions.
Definition tarch.h:97