LORENE
cmp_pde_falloff.C
1
/*
2
* Methods of the class Cmp for partial differential equations
3
* with a falloff condition at the outer boundary
4
*
5
* (see file cmp.h for documentation).
6
*
7
*/
8
9
/*
10
* Copyright (c) 2004 Joshua A. Faber
11
*
12
* This file is part of LORENE.
13
*
14
* LORENE is free software; you can redistribute it and/or modify
15
* it under the terms of the GNU General Public License version 2
16
* as published by the Free Software Foundation.
17
*
18
* LORENE is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
22
*
23
* You should have received a copy of the GNU General Public License
24
* along with LORENE; if not, write to the Free Software
25
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
*
27
*/
28
29
30
31
/*
32
* $Id: cmp_pde_falloff.C,v 1.3 2016/12/05 16:17:49 j_novak Exp $
33
* $Log: cmp_pde_falloff.C,v $
34
* Revision 1.3 2016/12/05 16:17:49 j_novak
35
* Suppression of some global variables (file names, loch, ...) to prevent redefinitions
36
*
37
* Revision 1.2 2014/10/13 08:52:48 j_novak
38
* Lorene classes and functions now belong to the namespace Lorene.
39
*
40
* Revision 1.1 2004/11/30 20:47:38 k_taniguchi
41
* *** empty log message ***
42
*
43
*
44
* $Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_pde_falloff.C,v 1.3 2016/12/05 16:17:49 j_novak Exp $
45
*
46
*/
47
48
// Header Lorene:
49
#include "map.h"
50
#include "cmp.h"
51
#include "param.h"
52
53
//-----------------------------------//
54
// Scalar Poisson equation //
55
//-----------------------------------//
56
57
// Version without parameters
58
// --------------------------
59
60
namespace
Lorene
{
61
Cmp
Cmp::poisson_falloff(
int
k_falloff)
const
{
62
63
Param bidon ;
64
Cmp
resu(*
mp
) ;
65
66
mp
->poisson_falloff(*
this
, bidon, resu, k_falloff) ;
67
68
return
resu ;
69
}
70
71
// Version with parameters
72
// -----------------------
73
74
void
Cmp::poisson_falloff(
Param
& par,
Cmp
& uu,
int
k_falloff)
const
{
75
76
mp
->poisson_falloff(*
this
, par, uu, k_falloff) ;
77
78
}
79
}
Lorene::Cmp
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
Definition
cmp.h:446
Lorene::Cmp::mp
const Map * mp
Reference mapping.
Definition
cmp.h:451
Lorene::Cmp::Cmp
Cmp(const Map &map)
Constructor from mapping.
Definition
cmp.C:211
Lorene::Param
Parameter storage.
Definition
param.h:125
Lorene
Lorene prototypes.
Definition
app_hor.h:67
C++
Source
Cmp
cmp_pde_falloff.C
Generated by
1.17.0