forked from snytav/atom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice_functions.h
executable file
·72 lines (56 loc) · 1.85 KB
/
service_functions.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
* service_functions.h
*
* Created on: Apr 30, 2018
* Author: snytav
*/
#ifndef SERVICE_FUNCTIONS_H_
#define SERVICE_FUNCTIONS_H_
#include <string>
double CheckArraySilent (double* a, double* dbg_a,int size);
void read3Darray(char* name, double* d);
void read3Darray(std::string name, double* d);
void get_load_data_file_names(
std::string & t_jxfile,
std::string & t_jyfile,
std::string & t_jzfile,
std::string & t_d_jxfile,
std::string & t_d_jyfile,
std::string & t_d_jzfile,
std::string & t_np_jxfile,
std::string & t_np_jyfile,
std::string & t_np_jzfile,
std::string & t_qxfile,
std::string & t_qyfile,
std::string & t_qzfile,int nt);
double get_meminfo(void);
double get_meminfo1(void);
int setPrintfLimit();
void cudaMalloc3D(double **X,double **Y,double**Z,int nx,int ny,int nz);
void InitGPUFields(
double **d_Ex,double **d_Ey,double **d_Ez,
double **d_Hx,double **d_Hy,double **d_Hz,
double **d_Jx,double **d_Jy,double **d_Jz,
double **d_npJx,double **d_npJy,double **d_npJz,
double **d_Qx,double **d_Qy,double **d_Qz,
double *Ex,double *Ey,double *Ez,
double *Hx,double *Hy,double *Hz,
double *Jx,double *Jy,double *Jz,
double *npJx,double *npJy,double *npJz,
double *Qx,double *Qy,double *Qz,
int Nx,int Ny,int Nz
);
void copyFieldsToGPU(
double *d_Ex,double *d_Ey,double *d_Ez,
double *d_Hx,double *d_Hy,double *d_Hz,
double *d_Jx,double *d_Jy,double *d_Jz,
double *d_npJx,double *d_npJy,double *d_npJz,
double *d_Qx,double *d_Qy,double *d_Qz,
double *Ex,double *Ey,double *Ez,
double *Hx,double *Hy,double *Hz,
double *Jx,double *Jy,double *Jz,
double *npJx,double *npJy,double *npJz,
double *Qx,double *Qy,double *Qz,
int Nx,int Ny,int Nz
);
#endif /* SERVICE_FUNCTIONS_H_ */