forked from yskmt/navier_stokes_multigrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIO.h
45 lines (38 loc) · 805 Bytes
/
IO.h
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
40
41
42
43
44
45
// assemble matrix and vector
#ifndef IO_H
#define IO_H
#include "utils.h"
#include "advection.h"
using namespace std;
// write out the sparse matrix
int write_matrix(cuint P,
cuint Q,
double** U,
char* file_name);
// write out the sparse matrix
int write_vector( cuint P,
double* F,
char* file_name);
// write out the results
int write_results( double* U,
double* V,
double* W,
double* P,
cuint n_dof,
cuint nx,
cuint ny,
cuint nz,
cdouble xmin,
cdouble ymin,
cdouble zmin,
cdouble hx,
cdouble hy,
cdouble hz,
cuint ts,
cdouble bcs[][6]
);
// write out 3d data for debuggin purpose
int write_3d_data( double* U,
cuint nx, cuint ny, cuint nz,
char* file_name );
#endif //IO_H