Skip to content
Snippets Groups Projects
Select Git revision
  • 8464b1965cc69b3cff1f4dbebe2c607b8fbe70e7
  • develop default protected
  • feature/gmsh-reader
  • origin/stage/bouguettaia
  • feature/kinetic-schemes
  • feature/reconstruction
  • feature/local-dt-fsi
  • feature/composite-scheme-sources
  • feature/composite-scheme-other-fluxes
  • feature/serraille
  • feature/variational-hydro
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • master protected
  • feature/escobar-smoother
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

example_props.cpp

Blame
    • Stéphane Del Pino's avatar
      8464b196
      git subrepo pull --force packages/HighFive · 8464b196
      Stéphane Del Pino authored
      subrepo:
        subdir:   "packages/HighFive"
        merged:   "88fcc8989"
      upstream:
        origin:   "git@github.com:BlueBrain/HighFive.git"
        branch:   "master"
        commit:   "88fcc8989"
      git-subrepo:
        version:  "0.4.6"
        origin:   "git@github.com:ingydotnet/git-subrepo.git"
        commit:   "110b9eb"
      8464b196
      History
      git subrepo pull --force packages/HighFive
      Stéphane Del Pino authored
      subrepo:
        subdir:   "packages/HighFive"
        merged:   "88fcc8989"
      upstream:
        origin:   "git@github.com:BlueBrain/HighFive.git"
        branch:   "master"
        commit:   "88fcc8989"
      git-subrepo:
        version:  "0.4.6"
        origin:   "git@github.com:ingydotnet/git-subrepo.git"
        commit:   "110b9eb"
    example_props.cpp 591 B
    #include <highfive/highfive.hpp>
    
    using namespace HighFive;
    
    int write_data() {
        FileDriver fdrv;
    
        fdrv.add(FileVersionBounds(H5F_LIBVER_LATEST, H5F_LIBVER_LATEST));
        fdrv.add(MetadataBlockSize(10240));
    
        File file("example2.h5", File::Truncate, fdrv);
    
        GroupCreateProps props;
        props.add(EstimatedLinkInfo(1000, 500));
        auto group = file.createGroup("g", props);
    
        DataSetCreateProps dsprops;
        dsprops.add(Chunking(std::vector<hsize_t>{2, 2}));
        dsprops.add(Deflate(9));
    
    
        std::vector<int> d1(100000, 1);
        group.createDataSet("dset1", d1, dsprops);
    }