-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgahm.i
More file actions
94 lines (74 loc) · 2.1 KB
/
Copy pathgahm.i
File metadata and controls
94 lines (74 loc) · 2.1 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// GAHM SWIG Module
%module pygahm
%insert("python")
%{
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)
%}
%{
#define SWIG_FILE_WITH_INIT
#include "gahm.h"
#include "physical/Constants.h"
#include "physical/Earth.h"
#include "physical/Atmospheric.h"
#include "datatypes/Date.h"
#include "datatypes/Point.h"
#include "datatypes/PointCloud.h"
#include "datatypes/PointPosition.h"
#include "datatypes/Uvp.h"
#include "datatypes/VortexSolution.h"
#include "datatypes/WindGrid.h"
#include "atcf/AtcfFile.h"
#include "atcf/AtcfSnap.h"
#include "atcf/AtcfIsotach.h"
#include "atcf/AtcfQuadrant.h"
#include "atcf/StormPosition.h"
#include "atcf/StormTranslation.h"
#include "output/OutputFile.h"
#include "output/OwiOutput.h"
#include "preprocessor/Preprocessor.h"
#include "vortex/Vortex.h"
%}
%include <std_string.i>
%include <exception.i>
%include <std_vector.i>
%include <windows.i>
%exception {
try {
$action
} catch (const std::exception& e) {
SWIG_exception(SWIG_RuntimeError, e.what());
} catch (const std::string& e) {
SWIG_exception(SWIG_RuntimeError, e.c_str());
}
}
namespace std {
%template(IntVector) vector<int>;
%template(SizetVector) vector<size_t>;
%template(DoubleVector) vector<double>;
%template(DoubleDoubleVector) vector<vector<double>>;
%template(SizetSizetVector) vector<vector<size_t>>;
%template(AtcfSnapVector) vector<Gahm::Atcf::AtcfSnap>;
%template(AtcfIsotachVector) vector<Gahm::Atcf::AtcfIsotach>;
}
%include "gahm.h"
%include "physical/Constants.h"
%include "physical/Earth.h"
%include "physical/Atmospheric.h"
%include "datatypes/Date.h"
%include "datatypes/Point.h"
%include "datatypes/PointCloud.h"
%include "datatypes/PointPosition.h"
%include "datatypes/Uvp.h"
%include "datatypes/VortexSolution.h"
%include "datatypes/WindGrid.h"
%include "atcf/AtcfFile.h"
%include "atcf/AtcfSnap.h"
%include "atcf/AtcfIsotach.h"
%include "atcf/AtcfQuadrant.h"
%include "atcf/StormPosition.h"
%include "atcf/StormTranslation.h"
%include "output/OutputFile.h"
%include "output/OwiOutput.h"
%include "preprocessor/Preprocessor.h"
%include "vortex/Vortex.h"