mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
LasWell. Parse DATE token from LAS well information section
This commit is contained in:
parent
141bfd27d7
commit
19e5e61cb7
6
ThirdParty/NRLib/nrlib/well/laswell.cpp
vendored
6
ThirdParty/NRLib/nrlib/well/laswell.cpp
vendored
@ -286,7 +286,11 @@ LasWell::ParseWellToken(const std::string & token,
|
||||
if(value.empty() == false)
|
||||
SetWellName(value);
|
||||
}
|
||||
|
||||
else if (token == "DATE")
|
||||
{
|
||||
if (value.empty() == false)
|
||||
SetDate(value);
|
||||
}
|
||||
else if(token == "STRT" || token == "STOP" || token == "STEP" ||
|
||||
token == "NULL" || token == "XWELL" || token == "YWELL")
|
||||
{
|
||||
|
4
ThirdParty/NRLib/nrlib/well/well.cpp
vendored
4
ThirdParty/NRLib/nrlib/well/well.cpp
vendored
@ -244,6 +244,10 @@ void Well::SetWellName(const std::string& wellname)
|
||||
well_name_ = wellname;
|
||||
}
|
||||
|
||||
void Well::SetDate(const std::string& date)
|
||||
{
|
||||
date_ = date;
|
||||
}
|
||||
|
||||
bool Well::IsMissing(double x)const
|
||||
{
|
||||
|
7
ThirdParty/NRLib/nrlib/well/well.hpp
vendored
7
ThirdParty/NRLib/nrlib/well/well.hpp
vendored
@ -96,6 +96,11 @@ namespace NRLib {
|
||||
void SetWellName(const std::string& wellname);
|
||||
///
|
||||
const std::string& GetWellName() const { return well_name_; };
|
||||
/// Set name of well
|
||||
void SetDate(const std::string& wellname);
|
||||
///
|
||||
const std::string& GetDate() const { return date_; };
|
||||
|
||||
/// Return true if x is missing
|
||||
bool IsMissing(double x) const;
|
||||
/// Return true if n is missing
|
||||
@ -193,6 +198,8 @@ namespace NRLib {
|
||||
std::map<std::string,std::vector<double> > cont_log_background_resolution_;
|
||||
/// Name of well
|
||||
std::string well_name_;
|
||||
/// Date
|
||||
std::string date_;
|
||||
/// Missing value for continous logs.
|
||||
double well_rmissing_;
|
||||
/// Missing value for discrete logs.
|
||||
|
Loading…
Reference in New Issue
Block a user