OGS
NodePartitionedMeshReader.cpp File Reference
#include "NodePartitionedMeshReader.h"
#include <mpi.h>
#include <fstream>
#include <numeric>
#include "BaseLib/FileTools.h"
#include "BaseLib/Logging.h"
#include "BaseLib/MPI.h"
#include "BaseLib/RunTime.h"
#include "MeshLib/Elements/Elements.h"
#include "MeshLib/MeshEnums.h"
#include "MeshLib/Properties.h"
Include dependency graph for NodePartitionedMeshReader.cpp:

Go to the source code of this file.

Namespaces

namespace  MeshLib
namespace  MeshLib::IO

Functions

template<typename VALUE, typename TYPE>
bool is_safely_convertable (VALUE const &value)

Function Documentation

◆ is_safely_convertable()

template<typename VALUE, typename TYPE>
bool is_safely_convertable ( VALUE const & value)

Definition at line 21 of file NodePartitionedMeshReader.cpp.

22{
23 bool const result = value <= std::numeric_limits<TYPE>::max();
24 if (!result)
25 {
26 ERR("The value {:d} is too large for conversion.", value);
27 ERR("Maximum available size is {:d}.",
28 std::numeric_limits<TYPE>::max());
29 }
30 return result;
31}
void ERR(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:40

References ERR().

Referenced by MeshLib::IO::NodePartitionedMeshReader::readDataFromFile().