-
Notifications
You must be signed in to change notification settings - Fork 96
/
bc.i
60 lines (49 loc) · 1.3 KB
/
bc.i
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
// ======================================================================
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University at Buffalo
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright (c) 2010-2022 University of California, Davis
//
// See LICENSE.md for license information.
//
// ======================================================================
//
// SWIG interface
%module bc
// Header files for module C++ code
%{
#include "pylith/bc/DirichletTimeDependent.hh"
#include "pylith/bc/NeumannTimeDependent.hh"
#include "pylith/bc/AbsorbingDampers.hh"
%}
%include "exception.i"
%exception {
try {
$action
} catch (const std::exception& err) {
SWIG_exception(SWIG_RuntimeError, err.what());
} // try/catch
} // exception
%include "typemaps.i"
%include "../include/scalartypemaps.i"
// Numpy interface stuff
%{
#define SWIG_FILE_WITH_INIT
%}
%include "../include/numpy.i"
%init %{
import_array();
%}
// Interfaces
%include "../utils/PyreComponent.i"
%include "../problems/Physics.i"
%include "BoundaryCondition.i"
%include "DirichletTimeDependent.i"
%include "NeumannTimeDependent.i"
%include "AbsorbingDampers.i"
// End of file