Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91690255
py_akantu.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 13, 12:40
Size
1 KB
Mime Type
text/x-c
Expires
Fri, Nov 15, 12:40 (2 d)
Engine
blob
Format
Raw Data
Handle
22308293
Attached To
rAKA akantu
py_akantu.cc
View Options
/* -------------------------------------------------------------------------- */
#include <aka_error.hh>
/* -------------------------------------------------------------------------- */
#include "py_aka_boundary_conditions.hh"
#include "py_aka_common.hh"
#include "py_aka_error.hh"
#include "py_aka_fe_engine.hh"
#include "py_aka_material.hh"
#include "py_aka_mesh.hh"
#include "py_aka_model.hh"
#include "py_aka_parser.hh"
#include "py_aka_solid_mechanics_model.hh"
#include "py_aka_solid_mechanics_model_cohesive.hh"
/* -------------------------------------------------------------------------- */
#include <pybind11/pybind11.h>
namespace
py
=
pybind11
;
PYBIND11_MODULE
(
py11_akantu
,
mod
)
{
mod
.
doc
()
=
"Akantu python interface"
;
static
py
::
exception
<
akantu
::
debug
::
Exception
>
akantu_exception
(
mod
,
"Exception"
);
py
::
register_exception_translator
([](
std
::
exception_ptr
p
)
{
try
{
if
(
p
)
std
::
rethrow_exception
(
p
);
}
catch
(
akantu
::
debug
::
Exception
&
e
)
{
if
(
akantu
::
debug
::
debugger
.
printBacktrace
())
akantu
::
debug
::
printBacktrace
(
15
);
akantu_exception
(
e
.
info
().
c_str
());
}
});
akantu
::
register_initialize
(
mod
);
akantu
::
register_enums
(
mod
);
akantu
::
register_error
(
mod
);
akantu
::
register_parser
(
mod
);
akantu
::
register_boundary_conditions
(
mod
);
akantu
::
register_fe_engine
(
mod
);
akantu
::
register_model
(
mod
);
akantu
::
register_solid_mechanics_model
(
mod
);
akantu
::
register_solid_mechanics_model_cohesive
(
mod
);
akantu
::
register_material
(
mod
);
akantu
::
register_mesh
(
mod
);
}
// Module akantu
Event Timeline
Log In to Comment