-
Notifications
You must be signed in to change notification settings - Fork 96
/
bc.i
53 lines (43 loc) · 1.33 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
// =================================================================================================
// This code is part of PyLith, developed through the Computational Infrastructure
// for Geodynamics (https://github.com/geodynamics/pylith).
//
// Copyright (c) 2010-2024, University of California, Davis and the PyLith Development Team.
// All rights reserved.
//
// See https://mit-license.org/ and LICENSE.md and 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