2016-03-09 19:04:05 +01:00
# Generated automatically using the command :
2020-06-10 17:45:53 +02:00
# c++2py.py -m atm -o atm --moduledoc "Analytical Tetrahedron Method for DOS" ../../../../c++/triqs_dft_tools/converters/vasp/dos_tetra3d.hpp
2017-12-07 15:56:05 +01:00
from cpp2py . wrap_generator import *
2016-03-09 19:04:05 +01:00
# The module
module = module_ ( full_name = " atm " , doc = " Analytical Tetrahedron Method for calculating DOS " , app_name = " atm " )
# All the triqs C++/Python modules
# Add here all includes beyond what is automatically included by the triqs modules
2020-06-10 17:45:53 +02:00
module . add_include ( " triqs_dft_tools/converters/vasp/dos_tetra3d.hpp " )
2016-03-09 19:04:05 +01:00
# Add here anything to add in the C++ code at the start, e.g. namespace using
module . add_preamble ( """
2018-01-22 23:34:20 +01:00
#include <triqs/cpp2py_converters/arrays.hpp>
2021-05-18 20:29:45 +02:00
using namespace nda ;
2016-03-09 19:04:05 +01:00
""" )
2019-07-02 16:49:35 +02:00
module . add_function ( " array<double,2> dos_tetra_weights_3d (array_view<double,1> eigk, double en, array_view<long,2> itt) " , doc = """ DOS of a band by analytical tetrahedron method \n \n Returns corner weights for all tetrahedra for a given band and real energy. """ )
2016-03-09 19:04:05 +01:00
module . generate_code ( )