3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-23 04:43:42 +01:00

Run port_to_triqs3 script

This commit is contained in:
Nils Wentzell 2022-02-10 15:34:45 -05:00
parent 157d5d2549
commit 4f183b9bb2
4 changed files with 4 additions and 3 deletions

View File

@ -19,7 +19,7 @@ namespace app4triqs {
void h5_write(h5::group grp, std::string subgroup_name, toto const &m) { void h5_write(h5::group grp, std::string subgroup_name, toto const &m) {
grp = subgroup_name.empty() ? grp : grp.create_group(subgroup_name); grp = subgroup_name.empty() ? grp : grp.create_group(subgroup_name);
h5_write(grp, "i", m.i); h5_write(grp, "i", m.i);
h5_write_attribute(grp, "TRIQS_HDF5_data_scheme", toto::hdf5_format()); h5_write_attribute(grp, "Format", toto::hdf5_format());
} }
void h5_read(h5::group grp, std::string subgroup_name, toto &m) { void h5_read(h5::group grp, std::string subgroup_name, toto &m) {

View File

@ -1,5 +1,6 @@
#pragma once #pragma once
#include <triqs/gfs.hpp> #include <triqs/gfs.hpp>
#include <triqs/mesh.hpp>
#include <h5/h5.hpp> #include <h5/h5.hpp>
namespace app4triqs { namespace app4triqs {

View File

@ -1,5 +1,5 @@
# Generated automatically using the command : # Generated automatically using the command :
# c++2py ../../c++/app4triqs/app4triqs.hpp -p --members_read_only -N app4triqs -a app4triqs -m app4triqs_module -o app4triqs_module --moduledoc="The app4triqs python module" -C pytriqs --cxxflags="-std=c++17" --target_file_only # c++2py ../../c++/app4triqs/app4triqs.hpp -p --members_read_only -N app4triqs -a app4triqs -m app4triqs_module -o app4triqs_module --moduledoc="The app4triqs python module" -C triqs --cxxflags="-std=c++17" --target_file_only
from cpp2py.wrap_generator import * from cpp2py.wrap_generator import *
# The module # The module

View File

@ -3,7 +3,7 @@
import unittest import unittest
from app4triqs import Toto, chain from app4triqs import Toto, chain
from triqs.archive import * from h5 import *
from triqs.utility import mpi from triqs.utility import mpi
class test_toto(unittest.TestCase): class test_toto(unittest.TestCase):