00001 /* 00002 * Methods of the class Cmp for partial differential equations 00003 * with a multipole falloff condition at the outer boundary 00004 * 00005 * (see file cmp.h for documentation). 00006 * 00007 */ 00008 00009 /* 00010 * Copyright (c) 2004 Joshua A. Faber 00011 * 00012 * This file is part of LORENE. 00013 * 00014 * LORENE is free software; you can redistribute it and/or modify 00015 * it under the terms of the GNU General Public License version 2 00016 * as published by the Free Software Foundation. 00017 * 00018 * LORENE is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 * GNU General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU General Public License 00024 * along with LORENE; if not, write to the Free Software 00025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00026 * 00027 */ 00028 00029 char cmp_pde_ylm_C[] = "$Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_pde_ylm.C,v 1.1 2004/12/29 16:27:48 k_taniguchi Exp $" ; 00030 00031 /* 00032 * $Id: cmp_pde_ylm.C,v 1.1 2004/12/29 16:27:48 k_taniguchi Exp $ 00033 * $Log: cmp_pde_ylm.C,v $ 00034 * Revision 1.1 2004/12/29 16:27:48 k_taniguchi 00035 * *** empty log message *** 00036 * 00037 * 00038 * $Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_pde_ylm.C,v 1.1 2004/12/29 16:27:48 k_taniguchi Exp $ 00039 * 00040 */ 00041 00042 // Lorene headers 00043 #include "map.h" 00044 #include "cmp.h" 00045 #include "param.h" 00046 00047 //-----------------------------------// 00048 // Scalar Poisson equation // 00049 //-----------------------------------// 00050 00051 // Version without parameters 00052 // -------------------------- 00053 00054 Cmp Cmp::poisson_ylm(int nylm, double* intvec) const { 00055 00056 Param bidon ; 00057 Cmp resu(*mp) ; 00058 00059 mp->poisson_ylm(*this, bidon, resu, nylm, intvec) ; 00060 00061 return resu ; 00062 } 00063 00064 // Version with parameters 00065 // ----------------------- 00066 00067 void Cmp::poisson_ylm(Param& par, Cmp& uu, int nylm, double* intvec) const { 00068 00069 mp->poisson_ylm(*this, par, uu, nylm, intvec) ; 00070 00071 }
1.4.6