Skip to content

Commit 6355bee

Browse files
committed
Make public the default HydroData constructor.
This allows using a default-initialized member variable of type HydroData which is useful (for example) to properly catch posiible exception while reading a hydro data HDF5 file.
1 parent 5c666b5 commit 6355bee

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

include/hydroc/io/h5_reader.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ class H5File;
3030

3131
class H5FileInfo;
3232

33+
//// RADU - these should not be in the global namespace!
34+
3335
// contains "chunked" data from the h5 file, generated from H5FileInfo class
3436
class HydroData {
3537
public:
@@ -78,9 +80,10 @@ class HydroData {
7880
std::vector<IrregularWaveInfo> irreg_wave_data_;
7981
friend H5FileInfo;
8082
void resize(int num_bodies);
81-
HydroData() = default;
8283

8384
public:
85+
HydroData() = default;
86+
8487
// getter function naming conventions: put Matrix, Vector, or Val at end to denote return type, always put body_num
8588
// argument first, body_num is always 0 indexed, one line return types can be defined here and not in cpp
8689

0 commit comments

Comments
 (0)