-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathopencfd.c
More file actions
58 lines (40 loc) · 797 Bytes
/
opencfd.c
File metadata and controls
58 lines (40 loc) · 797 Bytes
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
46
47
48
49
50
51
52
53
54
55
56
57
#include <stdlib.h>
#include <stdio.h>
#include "mpi.h"
#include "utility.h"
#include "parameters.h"
#include "OCFD_NS_Solver.h"
#include "OCFD_mpi.h"
#include "OCFD_init.h"
#include "cuda_commen.h"
#include "OCFD_mpi_dev.h"
#include "OCFD_filtering.h"
#ifdef PROFILING
#include <cuda_profiler_api.h>
#endif
#ifdef __cplusplus
extern "C"{
#endif
int main(int argc, char *argv[]){
mpi_init(&argc , &argv);
read_parameters();
opencfd_mem_init_mpi();
part();
set_para_filtering();
opencfd_mem_init_all();
cuda_commen_init();
init();
#ifdef PROFILING
cudaProfilerStart();
#endif
NS_solver_real();
#ifdef PROFILING
cudaProfilerStop();
#endif
opencfd_mem_finalize_all();
mpi_finalize();
return 0;
}
#ifdef __cplusplus
}
#endif