| 1 |
/* |
| 2 |
* Test code for Mg3d class. |
| 3 |
* |
| 4 |
*/ |
| 5 |
|
| 6 |
/* |
| 7 |
* Copyright (c) 2001 Eric Gourgoulhon. |
| 8 |
* |
| 9 |
* This file is part of LORENE. |
| 10 |
* |
| 11 |
* LORENE is free software; you can redistribute it and/or modify |
| 12 |
* it under the terms of the GNU General Public License version 2 |
| 13 |
* as published by the Free Software Foundation. |
| 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 |
char test_mg3d_C[] = "$Header: /cvsroot/Lorene/Codes/Test/Mg3d/test_mg3d.C,v 1.6 2014/10/13 08:54:02 j_novak Exp $" ; |
| 27 |
|
| 28 |
/* |
| 29 |
* $Id: test_mg3d.C,v 1.6 2014/10/13 08:54:02 j_novak Exp $ |
| 30 |
* $Log: test_mg3d.C,v $ |
| 31 |
* Revision 1.6 2014/10/13 08:54:02 j_novak |
| 32 |
* Lorene classes and functions now belong to the namespace Lorene. |
| 33 |
* |
| 34 |
* Revision 1.5 2014/10/06 15:12:54 j_novak |
| 35 |
* Modified #include directives to use c++ syntax. |
| 36 |
* |
| 37 |
* Revision 1.4 2003/01/09 11:07:54 j_novak |
| 38 |
* headcpp.h is now compliant with C++ norm. |
| 39 |
* The include files have been ordered, as well as the local_settings_linux |
| 40 |
* |
| 41 |
* Revision 1.3 2001/12/12 12:33:44 e_gourgoulhon |
| 42 |
* Installation instructions now in files INSTALL and INSTALL_linux |
| 43 |
* |
| 44 |
* Revision 1.2 2001/12/12 09:23:46 e_gourgoulhon |
| 45 |
* Parameter compact added to the simplified constructor of class Mg3d |
| 46 |
* |
| 47 |
* Revision 1.1 2001/12/11 06:50:14 e_gourgoulhon |
| 48 |
* test code for Mg3d class |
| 49 |
* |
| 50 |
* |
| 51 |
* |
| 52 |
* $Header: /cvsroot/Lorene/Codes/Test/Mg3d/test_mg3d.C,v 1.6 2014/10/13 08:54:02 j_novak Exp $ |
| 53 |
* |
| 54 |
*/ |
| 55 |
|
| 56 |
// C headers |
| 57 |
#include <cstdlib> |
| 58 |
|
| 59 |
// Lorene headers |
| 60 |
#include "headcpp.h" |
| 61 |
#include "grilles.h" |
| 62 |
#include "type_parite.h" |
| 63 |
|
| 64 |
|
| 65 |
using namespace Lorene ; |
| 66 |
|
| 67 |
int main() { |
| 68 |
|
| 69 |
int nz = 4 ; |
| 70 |
int nr = 17 ; |
| 71 |
int nt = 9 ; |
| 72 |
int np = 4 ; |
| 73 |
|
| 74 |
{ |
| 75 |
Mg3d mg(nz, nr, nt, np, SYM, NONSYM, true) ; |
| 76 |
cout << "Multi-grid:" << endl ; |
| 77 |
cout << mg << endl ; |
| 78 |
} |
| 79 |
|
| 80 |
return EXIT_SUCCESS ; |
| 81 |
|
| 82 |
} |
| 83 |
|