-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cc
39 lines (34 loc) · 898 Bytes
/
main.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <iostream>
#include "poisson.h"
int main( int argc, char* argv[] ){
double Lx, Ly,
px, py,
Lc, rho;
int Nx, Ny;
std::string file;
std::cout << "lati rettangolo:"
<< std::endl;
std::cin >> Lx >> Ly;
std::cout << "numero di punti su x e y:"
<< std::endl;
std::cin >> Nx >> Ny;
std::cout << "coordinate quadrato:"
<< std::endl;
std::cin >> px >> py;
std::cout << "lato quadrato:"
<< std::endl;
std::cin >> Lc;
std::cout << "rho_0:"
<< std::endl;
std::cin >> rho;
std::cout << "nome file output: ";
std::cin >> file;
poisson phi( Lx, Ly, Nx, Ny, px, py, Lc, rho );
phi.calcH();
phi.calcMatrix();
phi.calcf();
phi.calcTilde();
phi.gaussmethod();
phi.output( file );
return 1;
}