changed: use internal function to uppercase string

This commit is contained in:
Arne Morten Kvarving
2020-02-19 11:20:16 +01:00
parent 4ba7d3a7bc
commit e262cf8d51
2 changed files with 9 additions and 6 deletions
+5 -3
View File
@@ -40,6 +40,8 @@
#include <opm/common/OpmLog/LogUtil.hpp>
#endif
#include <opm/parser/eclipse/Utility/String.hpp>
BEGIN_PROPERTIES
// forward declaration of property tags
@@ -93,11 +95,11 @@ static FileOutputMode setupLogging(int mpi_rank_, const std::string& deck_filena
std::ostringstream logFileStream;
// Strip extension "." or ".DATA"
std::string extension = boost::to_upper_copy(fpath.extension().string());
std::string extension = uppercase(fpath.extension().string());
if (extension == ".DATA" || extension == ".") {
baseName = boost::to_upper_copy(fpath.stem().string());
baseName = uppercase(fpath.stem().string());
} else {
baseName = boost::to_upper_copy(fpath.filename().string());
baseName = uppercase(fpath.filename().string());
}
std::string output_dir = cmdline_output_dir;