Peano
Loading...
Searching...
No Matches
Derivative.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
7#include "tarch/la/Vector.h"
8
9
10namespace toolbox {
11 namespace blockstructured {
30 int numberOfDoFsPerAxisInPatch,
31 const double* __restrict__ source,
32 int sourceIndex,
33 int sourceUnknowns,
34 int sourceHalo,
35 double* __restrict__ dest,
36 const tarch::la::Vector<Dimensions,int>& destIndex,
37 int destUnknowns,
38 int destHalo,
40 );
41
42
44 int numberOfDoFsPerAxisInPatch,
45 const double* __restrict__ source,
46 int sourceIndex,
47 int sourceUnknowns,
48 int sourceHalo,
49 double* __restrict__ dest,
50 const tarch::la::Vector<Dimensions,int>& destIndex,
51 int destUnknowns,
52 int destHalo,
54 );
55 }
56}
57
58
void computeGradient(int numberOfDoFsPerAxisInPatch, const double *__restrict__ source, int sourceIndex, int sourceUnknowns, int sourceHalo, double *__restrict__ dest, const tarch::la::Vector< Dimensions, int > &destIndex, int destUnknowns, int destHalo, const tarch::la::Vector< Dimensions, double > &volumeH)
This routine assumes that we have two patches of the same numberOfDoFsPerAxisInPatch.
double computeGradientAndReturnMaxDifference(int numberOfDoFsPerAxisInPatch, const double *__restrict__ source, int sourceIndex, int sourceUnknowns, int sourceHalo, double *__restrict__ dest, const tarch::la::Vector< Dimensions, int > &destIndex, int destUnknowns, int destHalo, const tarch::la::Vector< Dimensions, double > &volumeH)
Simple vector class.
Definition Vector.h:159