escript Revision_
Dodgy.h
Go to the documentation of this file.
1
2/*****************************************************************************
3*
4* Copyright (c) 2009-2018 by The University of Queensland
5* http://www.uq.edu.au
6*
7* Primary Business: Queensland, Australia
8* Licensed under the Apache License, version 2.0
9* http://www.apache.org/licenses/LICENSE-2.0
10*
11* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12* Development 2012-2013 by School of Earth Sciences
13* Development from 2014-2017 by Centre for Geoscience Computing (GeoComp)
14* Development from 2019 by School of Earth and Environmental Sciences
15**
16*****************************************************************************/
17
18#ifndef ES_DODGY_H
19#define ES_DODGY_H
20
21// This file contains functions which do bad things like violate the C standard
22// Functions in here should not go into general use and should only be used on
23// systems where the users are willing to accept responsibility for things working.
24
25// Do not add functions here without explaining why they are problematic
26
27namespace escript
28{
29// first param is output, next two are input data1 and2 the 3 ints are the size [in doubles]
30// of the first three params in order
31typedef int (*binOpFnPtr)(double*, const double*, const double*, int, int, int);
32
42
47
48}
49
50#endif
Definition AbstractContinuousDomain.cpp:23
int(* binOpFnPtr)(double *, const double *, const double *, int, int, int)
Definition Dodgy.h:31
void * voidPtrFromBinOpFnPtr(binOpFnPtr f)
Definition Dodgy.cpp:32
binOpFnPtr binOpFnPtrFromVoidPtr(void *v)
Definition Dodgy.cpp:23