Skip to content
Snippets Groups Projects
Commit ddbafe50 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Sort inclusion dependencies

parent aa5f8de3
No related branches found
No related tags found
No related merge requests found
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
#include <cstdio> #include <cstdio>
#include <exception> #include <exception>
#include <fstream> #include <fstream>
#include <hdf5.h>
#include <regex> #include <regex>
#include <string> #include <string>
#include <hdf5.h>
#ifndef INCLUDE_LIST_H_ #ifndef INCLUDE_LIST_H_
#include "../include/List.h" #include "../include/List.h"
...@@ -782,7 +782,7 @@ void ScattererConfiguration::write_hdf5(string file_name) { ...@@ -782,7 +782,7 @@ void ScattererConfiguration::write_hdf5(string file_name) {
void **rec_pointers = rec_ptr_list.to_array(); void **rec_pointers = rec_ptr_list.to_array();
const int rec_num = rec_name_list.length(); const int rec_num = rec_name_list.length();
FileSchema schema(rec_num, rec_types, rec_names); FileSchema schema(rec_num, rec_types, rec_names);
HDFFile *hdf_file = HDFFile::from_schema(schema, "c_TEDF.hd5", H5F_ACC_TRUNC); HDFFile *hdf_file = HDFFile::from_schema(schema, file_name, H5F_ACC_TRUNC);
for (int ri = 0; ri < rec_num; ri++) for (int ri = 0; ri < rec_num; ri++)
hdf_file->write(rec_names[ri], rec_types[ri], rec_pointers[ri]); hdf_file->write(rec_names[ri], rec_types[ri], rec_pointers[ri]);
hdf_file->close(); hdf_file->close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment