diff --git a/Applications/FileIO/PetrelInterface.cpp b/Applications/FileIO/PetrelInterface.cpp index d4d4b70eecb416dd17f91a84736255d9b115206e..f6531393f8ec744be69eb52c63785c3710b67b23 100644 --- a/Applications/FileIO/PetrelInterface.cpp +++ b/Applications/FileIO/PetrelInterface.cpp @@ -217,8 +217,11 @@ void PetrelInterface::readPetrelWellTrace(std::istream& in) well_head_x, well_head_y, well_kb); - well_vec->push_back( - new GeoLib::StationBorehole(well_head_x, well_head_y, well_kb)); + double const depth = 0.0; + std::string const borehole_name = ""; + int const date = 0; + well_vec->push_back(new GeoLib::StationBorehole( + well_head_x, well_head_y, well_kb, depth, borehole_name, date)); // read well type in.getline(buffer, MAX_COLS_PER_ROW); diff --git a/GeoLib/StationBorehole.h b/GeoLib/StationBorehole.h index 74803761add9b971f8c8fb766c83a95b8b2fd878..93bfc5d7ed6fa773627bc965dc4bbd93a2ba06f1 100644 --- a/GeoLib/StationBorehole.h +++ b/GeoLib/StationBorehole.h @@ -32,12 +32,12 @@ class StationBorehole : public Station { public: /** constructor initialises the borehole with the given coordinates */ - explicit StationBorehole(double x = 0.0, - double y = 0.0, - double z = 0.0, - double const depth = 0.0, - const std::string& name = "", - int date = 0); + explicit StationBorehole(double x, + double y, + double z, + double const depth, + const std::string& name, + int date); ~StationBorehole() override; /// Creates a new borehole object based on the given parameters.