00001 /* 00002 * Computes 1/sin(theta) d/dphi of a Valeur 00003 */ 00004 00005 /* 00006 * Copyright (c) 1999-2001 Eric Gourgoulhon 00007 * 00008 * This file is part of LORENE. 00009 * 00010 * LORENE is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * LORENE is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with LORENE; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 * 00024 */ 00025 00026 00027 char valeur_stdsdp_C[] = "$Header: /cvsroot/Lorene/C++/Source/Valeur/valeur_stdsdp.C,v 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon Exp $" ; 00028 00029 00030 /* 00031 * $Id: valeur_stdsdp.C,v 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon Exp $ 00032 * $Log: valeur_stdsdp.C,v $ 00033 * Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon 00034 * LORENE 00035 * 00036 * Revision 2.1 1999/11/23 16:18:43 eric 00037 * Reorganisation du calcul dans le cas ETATZERO. 00038 * 00039 * Revision 2.0 1999/11/19 11:22:30 eric 00040 * *** empty log message *** 00041 * 00042 * 00043 * $Header: /cvsroot/Lorene/C++/Source/Valeur/valeur_stdsdp.C,v 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon Exp $ 00044 * 00045 */ 00046 00047 // Headers C 00048 #include <assert.h> 00049 00050 // Headers Lorene 00051 #include "valeur.h" 00052 00053 const Valeur& Valeur::stdsdp() const { 00054 00055 // Protection 00056 assert(etat != ETATNONDEF) ; 00057 00058 // Peut-etre rien a faire ? 00059 if (p_stdsdp != 0x0) { 00060 return *p_stdsdp ; 00061 } 00062 00063 // ... si, il faut bosser 00064 00065 p_stdsdp = new Valeur( dsdp() ) ; 00066 00067 *p_stdsdp = p_stdsdp->ssint() ; 00068 00069 // Termine 00070 return *p_stdsdp ; 00071 }
1.4.6