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
27
28
29
30/*
31 * $Id: valeur_stdsdp.C,v 1.4 2016/12/05 16:18:21 j_novak Exp $
32 * $Log: valeur_stdsdp.C,v $
33 * Revision 1.4 2016/12/05 16:18:21 j_novak
34 * Suppression of some global variables (file names, loch, ...) to prevent redefinitions
35 *
36 * Revision 1.3 2014/10/13 08:53:51 j_novak
37 * Lorene classes and functions now belong to the namespace Lorene.
38 *
39 * Revision 1.2 2014/10/06 15:13:24 j_novak
40 * Modified #include directives to use c++ syntax.
41 *
42 * Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon
43 * LORENE
44 *
45 * Revision 2.1 1999/11/23 16:18:43 eric
46 * Reorganisation du calcul dans le cas ETATZERO.
47 *
48 * Revision 2.0 1999/11/19 11:22:30 eric
49 * *** empty log message ***
50 *
51 *
52 * $Header: /cvsroot/Lorene/C++/Source/Valeur/valeur_stdsdp.C,v 1.4 2016/12/05 16:18:21 j_novak Exp $
53 *
54 */
55
56// Headers C
57#include <cassert>
58
59// Headers Lorene
60#include "valeur.h"
61
62namespace Lorene {
63const Valeur& Valeur::stdsdp() const {
64
65 // Protection
66 assert(etat != ETATNONDEF) ;
67
68 // Peut-etre rien a faire ?
69 if (p_stdsdp != 0x0) {
70 return *p_stdsdp ;
71 }
72
73 // ... si, il faut bosser
74
75 p_stdsdp = new Valeur( dsdp() ) ;
76
77 *p_stdsdp = p_stdsdp->ssint() ;
78
79 // Termine
80 return *p_stdsdp ;
81}
82}
const Valeur & dsdp() const
Returns of *this.
const Valeur & stdsdp() const
Returns of *this.
Valeur(const Mg3d &mgrid)
Constructor.
Definition valeur.C:203
Valeur * p_stdsdp
Pointer on .
Definition valeur.h:334
int etat
Logical state (ETATNONDEF , ETATQCQ or ETATZERO ).
Definition valeur.h:305
Lorene prototypes.
Definition app_hor.h:67