mirror of
https://github.com/triqs/dft_tools
synced 2024-10-31 19:23:45 +01:00
af084f5d59
- new parameter class : parameters are viewed as form, built in C++, and filled in C++/python. Each field of the form as a precise C++ type (erased using standard techniques). First tests ok, to be reread/checked. TODO : serialization is commented. Lead to long compilation time & large code due to boost::serialization. Use h5 when possible. - wrapper : - separated the converters of the wrapped type in the TRIQS library - necessary for parameters (it used outside an .so) and potentially other codes, outside an .so module
19 lines
522 B
C++
19 lines
522 B
C++
|
|
// REMOVE THIS
|
|
#include <triqs/arrays.hpp>
|
|
|
|
#include "./wrapper_tools.hpp"
|
|
namespace triqs { namespace py_tools {
|
|
|
|
template <> const char * make_format<0>::value = "";
|
|
template <> const char * make_format<1>::value = "O&";
|
|
template <> const char * make_format<2>::value = "O&O&";
|
|
template <> const char * make_format<3>::value = "O&O&O&";
|
|
template <> const char * make_format<4>::value = "O&O&O&O&";
|
|
template <> const char * make_format<5>::value = "O&O&O&O&O&";
|
|
|
|
|
|
pyref py_converter<triqs::h5::group>::group_type;
|
|
|
|
}}
|