MPI_Errhandler SMPI_default_File_Errhandler = _smpi_cfg_default_errhandler_is_error ? MPI_ERRORS_ARE_FATAL : MPI_ERRORS_RETURN;;
-namespace simgrid{
-namespace smpi{
+namespace simgrid::smpi {
File::File(MPI_Comm comm, const char* filename, int amode, MPI_Info info) : comm_(comm), flags_(amode), info_(info)
{
// in case no fullpath is provided ... just pick the first mountpoint.
if (size_t found = fullname.find('/'); found == std::string::npos || fullname.rfind("./", 1) != std::string::npos) {
- auto disk = simgrid::s4u::Host::current()->get_disks().front();
+ const auto* disk = simgrid::s4u::Host::current()->get_disks().front();
std::string mount;
if (disk->get_host() != simgrid::s4u::Host::current())
mount = disk->extension<simgrid::s4u::FileSystemDiskExt>()->get_mount_point(disk->get_host());
{
return static_cast<File*>(F2C::f2c(id));
}
-} // namespace smpi
-} // namespace simgrid
+} // namespace simgrid::smpi