integrate platform sub-namespace into source code and documentation

this updates function calls to functions that have been moved from
the utils namepsace or the Info class to platform::
This commit is contained in:
Axel Kohlmeyer
2021-10-02 15:50:58 -04:00
parent 195fe81c60
commit 37bfe3d0ce
36 changed files with 207 additions and 473 deletions

View File

@ -540,8 +540,8 @@ std::string ReadRestart::file_search(const std::string &inpfile)
{
// separate inpfile into dir + filename
auto dirname = utils::path_dirname(inpfile);
auto filename = utils::path_basename(inpfile);
auto dirname = platform::path_dirname(inpfile);
auto filename = platform::path_basename(inpfile);
// if filename contains "%" replace "%" with "base"
@ -574,7 +574,7 @@ std::string ReadRestart::file_search(const std::string &inpfile)
if (maxnum < 0) error->one(FLERR,"Found no restart file matching pattern");
filename.replace(filename.find('*'),1,std::to_string(maxnum));
}
return utils::path_join(dirname,filename);
return platform::path_join(dirname,filename);
}
/* ----------------------------------------------------------------------