mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#876 Avoid empty lines in LAS export file
This commit is contained in:
10
ThirdParty/NRLib/nrlib/well/laswell.cpp
vendored
10
ThirdParty/NRLib/nrlib/well/laswell.cpp
vendored
@@ -473,7 +473,7 @@ void LasWell::WriteToFile(const std::string & filename,
|
||||
for (size_t i = 0; i < comment_header.size(); ++i) {
|
||||
file << "# " << comment_header[i] << "\n";
|
||||
}
|
||||
file << "\n";
|
||||
file << "#\n";
|
||||
|
||||
// Version information
|
||||
file << "~Version information\n";
|
||||
@@ -481,7 +481,7 @@ void LasWell::WriteToFile(const std::string & filename,
|
||||
WriteLasLine(file, "WRAP", "", (wrap_ ? "YES" : "NO"), "");
|
||||
for(size_t i=0;i<version_info_.size();i++)
|
||||
file << version_info_[i] << "\n";
|
||||
file << "\n";
|
||||
file << "#\n";
|
||||
|
||||
file.setf(std::ios_base::fixed);
|
||||
file.precision(5);
|
||||
@@ -494,7 +494,7 @@ void LasWell::WriteToFile(const std::string & filename,
|
||||
WriteLasLine(file, "NULL", "", GetContMissing(), "");
|
||||
for(size_t i=0;i<well_info_.size();i++)
|
||||
file << well_info_[i] << "\n";
|
||||
file << "\n";
|
||||
file << "#\n";
|
||||
|
||||
if (GetNContLog() == 0) {
|
||||
// No log data in file.
|
||||
@@ -505,7 +505,7 @@ void LasWell::WriteToFile(const std::string & filename,
|
||||
file << "~Parameter information\n";
|
||||
for(size_t i=0;i<parameter_info_.size();i++)
|
||||
file << parameter_info_[i] << "\n";
|
||||
file << "\n";
|
||||
file << "#\n";
|
||||
|
||||
|
||||
// Curve information
|
||||
@@ -515,7 +515,7 @@ void LasWell::WriteToFile(const std::string & filename,
|
||||
for (size_t i = 0; i < GetNContLog(); ++i) {
|
||||
WriteLasLine(file, log_name_[i], log_unit_[i], "", log_comment_[i]);
|
||||
}
|
||||
file << "\n";
|
||||
file << "#\n";
|
||||
|
||||
// Data section
|
||||
file << "~Ascii\n";
|
||||
|
||||
Reference in New Issue
Block a user