LORENE
valeur_stdsdp.C
1/*
2 * Computes 1/sin(theta) d/dphi of a Valeur
3 */
4
5/*
6 * Copyright (c) 1999-2001 Eric Gourgoulhon
7 *
8 * This file is part of LORENE.
9 *
10 * LORENE is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * LORENE is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with LORENE; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 *
24 */
25
26
27char valeur_stdsdp_C[] = "$Header: /cvsroot/Lorene/C++/Source/Valeur/valeur_stdsdp.C,v 1.3 2014/10/13 08:53:51 j_novak Exp $" ;
28
29
30/*
31 * $Id: valeur_stdsdp.C,v 1.3 2014/10/13 08:53:51 j_novak Exp $
32 * $Log: valeur_stdsdp.C,v $
33 * Revision 1.3 2014/10/13 08:53:51 j_novak
34 * Lorene classes and functions now belong to the namespace Lorene.
35 *
36 * Revision 1.2 2014/10/06 15:13:24 j_novak
37 * Modified #include directives to use c++ syntax.
38 *
39 * Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon
40 * LORENE
41 *
42 * Revision 2.1 1999/11/23 16:18:43 eric
43 * Reorganisation du calcul dans le cas ETATZERO.
44 *
45 * Revision 2.0 1999/11/19 11:22:30 eric
46 * *** empty log message ***
47 *
48 *
49 * $Header: /cvsroot/Lorene/C++/Source/Valeur/valeur_stdsdp.C,v 1.3 2014/10/13 08:53:51 j_novak Exp $
50 *
51 */
52
53// Headers C
54#include <cassert>
55
56// Headers Lorene
57#include "valeur.h"
58
59namespace Lorene {
60const Valeur& Valeur::stdsdp() const {
61
62 // Protection
63 assert(etat != ETATNONDEF) ;
64
65 // Peut-etre rien a faire ?
66 if (p_stdsdp != 0x0) {
67 return *p_stdsdp ;
68 }
69
70 // ... si, il faut bosser
71
72 p_stdsdp = new Valeur( dsdp() ) ;
73
74 *p_stdsdp = p_stdsdp->ssint() ;
75
76 // Termine
77 return *p_stdsdp ;
78}
79}
Time evolution with partial storage (*** under development ***).
Definition evolution.h:371
Values and coefficients of a (real-value) function.
Definition valeur.h:287
const Valeur & dsdp() const
Returns of *this.
Definition valeur_dsdp.C:98
const Valeur & stdsdp() const
Returns of *this.
const Valeur & ssint() const
Returns of *this.
Valeur * p_stdsdp
Pointer on .
Definition valeur.h:324
int etat
Logical state (ETATNONDEF , ETATQCQ or ETATZERO ).
Definition valeur.h:295
Lorene prototypes.
Definition app_hor.h:64