Output file name and line number.

This commit is contained in:
Liu Ming
2016-06-08 09:45:32 +02:00
parent f948d9ea44
commit 1db1b3d178

View File

@@ -68,7 +68,9 @@ namespace Opm
OpmLog::warning("Can only handle a single region in ROCK (" OpmLog::warning("Can only handle a single region in ROCK ("
+ std::to_string(rockKeyword.size()) + std::to_string(rockKeyword.size())
+ " regions specified)." + " regions specified)."
+ " Ignoring all except for the first."); + " Ignoring all except for the first.\nSee " + rockKeyword.getFileName()
+ ", in line:" + std::to_string(rockKeyword.getLineNumber())
+ " for more information.");
} }
pref_ = rockKeyword.getRecord(0).getItem("PREF").getSIDouble(0); pref_ = rockKeyword.getRecord(0).getItem("PREF").getSIDouble(0);