FBasicKernels.hpp 2.15 KB
Newer Older
1
// ===================================================================================
2 3 4 5 6 7 8 9
// Logiciel initial: ScalFmm Version 0.5
// Co-auteurs : Olivier Coulaud, Bérenger Bramas.
// Propriétaires : INRIA.
// Copyright © 2011-2012, diffusé sous les termes et conditions d’une licence propriétaire.
// Initial software: ScalFmm Version 0.5
// Co-authors: Olivier Coulaud, Bérenger Bramas.
// Owners: INRIA.
// Copyright © 2011-2012, spread under the terms and conditions of a proprietary license.
10
// ===================================================================================
11 12
#ifndef FBASICKERNELS_HPP
#define FBASICKERNELS_HPP
13

14 15 16 17 18 19 20 21 22 23

#include "FAbstractKernels.hpp"


/**
* @author Berenger Bramas (berenger.bramas@inria.fr)
* @class AbstractKernels
* @brief
* Please read the license
*
24
* This kernels is empty and does nothing.
25
*/
berenger-bramas's avatar
berenger-bramas committed
26
template< class ParticleClass, class CellClass, class ContainerClass>
27
class FBasicKernels : public FAbstractKernels<ParticleClass,CellClass,ContainerClass> {
28 29 30 31 32
public:
    /** Default destructor */
    virtual ~FBasicKernels(){
    }

berenger-bramas's avatar
berenger-bramas committed
33
    /** Do nothing */
berenger-bramas's avatar
berenger-bramas committed
34
    virtual void P2M(CellClass* const , const ContainerClass* const ) {
35

36 37
    }

berenger-bramas's avatar
berenger-bramas committed
38
    /** Do nothing */
39
    virtual void M2M(CellClass* const FRestrict , const CellClass*const FRestrict *const FRestrict , const int ) {
40

41 42
    }

berenger-bramas's avatar
berenger-bramas committed
43
    /** Do nothing */
44
    virtual void M2L(CellClass* const FRestrict , const CellClass* [], const int , const int ) {
45

46 47
    }

berenger-bramas's avatar
berenger-bramas committed
48
    /** Do nothing */
49
    virtual void L2L(const CellClass* const FRestrict , CellClass* FRestrict *const FRestrict  , const int ) {
50

51 52
    }

berenger-bramas's avatar
berenger-bramas committed
53
    /** Do nothing */
berenger-bramas's avatar
berenger-bramas committed
54
    virtual void L2P(const CellClass* const , ContainerClass* const ){
55

56 57
    }

58

berenger-bramas's avatar
berenger-bramas committed
59
    /** Do nothing */
berenger-bramas's avatar
berenger-bramas committed
60
    virtual void P2P(const FTreeCoordinate& ,
berenger-bramas's avatar
berenger-bramas committed
61
                     ContainerClass* const FRestrict , const ContainerClass* const FRestrict ,
berenger-bramas's avatar
berenger-bramas committed
62
                     ContainerClass* const [27], const int ){
63

64
    }
65

66 67 68 69 70 71 72
    /** Do nothing */
    virtual void P2PRemote(const FTreeCoordinate& ,
                     ContainerClass* const FRestrict , const ContainerClass* const FRestrict ,
                     ContainerClass* const [27], const int ){

    }

73 74 75 76 77
};


#endif //FBASICKERNELS_HPP

78