-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprobes.h
57 lines (51 loc) · 1.4 KB
/
probes.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
/* NOTE: This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 3, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* Bugs can be reported to Yu Zhang <[email protected]>.
*
* File Name : probes.h
* Last Modified : Fri 12 Oct 2012 03:20:37 PM EDT
*/
#ifndef PROBES_H
#define PROBES_H
typedef struct
{
int write_timedomain;
int **probe_points;
int total_points;
int polarization;
double **fields;
double **dft_real;
double **dft_imag;
} OutputPort;
typedef struct
{
int dim;
int slice_index;
int length_x;
int length_y;
int length_z;
int x_start;
int y_start;
int z_start;
int x_stop;
int y_stop;
int z_stop;
int polarization;
double **field_buffer;
} FieldPlane;
extern OutputPort output_ports[];
extern int total_output_ports;
int setup_planes(char* file_name, char* output_file_name);
int update_planes (char* file_name, int time_index);
int setup_output_ports(char* file_name);
int update_ports(int time_index);
int write_ports(char* file_name);
#endif