Skip to content
Snippets Groups Projects
Commit cc56943d authored by Sergei Zharko's avatar Sergei Zharko Committed by Sergey Gorbunov
Browse files

comments/warning printouts clean-up

parent a3afbc4e
No related branches found
No related tags found
1 merge request!1952KF: material budget maps caching
......@@ -137,12 +137,11 @@ bool SetupBuilder::LoadMaterial()
ia >> targetMat;
ia >> fvMaterial;
fTarget.SetMaterial(targetMat);
// TODO: Provide consistency check (geometry hash)
}
catch (const std::exception& err) {
LOG(warn) << "kf::SetupBuilder::LoadMaterial: input file \"" << fsMaterialCacheFile
<< "\" has inconsistent format "
"or was corrupted. The material maps will be generated";
"or was corrupted. The material maps will be re-generated";
return false;
}
LOG(info) << "kf::SetupBuilder::LoadMaterial: the material maps were loaded from cache file \"" << fsMaterialCacheFile
......
......@@ -124,10 +124,10 @@ namespace cbm::algo::kf
/// \param filename Material budget cache file name
/// \param refHash Reference hash of the geometry
///
/// If provided, the instance will try to read the material budget maps from the file. If the file does not exist,
/// or the geometry hash was changed since the last time, the material budget maps will be recreated on the flight
/// and stored to the file. If the reference hash differs from one, read from the file, a warning will be produced,
/// and the new cache file will be generated.
/// If provided, the instance will try to read the material budget maps from the file.
/// If the file does not exist,or the geometry hash was changed since the last time (reference hash differs from
/// the one read from the file), a warning will be produced, the material budget maps will be recreated on the fly
/// and they will be stored again to the file (meaning a new cache file will be generated over the existing one).
void SetMaterialCacheFile(const std::string& filename, size_t refHash)
{
fsMaterialCacheFile = filename;
......
......@@ -75,10 +75,10 @@ namespace cbm::kf
/// \param filename Material budget cache file name
/// \param geoHash A hash of the geometry
///
/// If provided, the instance will try to read the material budget maps from the file. If the file does not exist,
/// or the geometry hash was changed since the last time, the material budget maps will be recreated on the flight
/// and stored to the file. If the reference hash differs from one, read from the file, a warning will be produced,
/// and the new cache file will be generated.
/// If provided, the instance will try to read the material budget maps from the file.
/// If the file does not exist,or the geometry hash was changed since the last time (reference hash differs from
/// the one read from the file), a warning will be produced, the material budget maps will be recreated on the fly
/// and they will be stored again to the file (meaning a new cache file will be generated over the existing one).
void SetMaterialCacheFile(const TString& filename, size_t geoHash)
{
fBuilder.SetMaterialCacheFile(filename.Data(), geoHash);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment