OGS
NodePartitionedMeshReader.cpp File Reference

Detailed Description

Define members of class NodePartitionedMeshReader to read node-wise partitioned mesh with MPI functions.

Author
Wenqing Wang
Date
2014.08

Definition in file NodePartitionedMeshReader.cpp.

#include "NodePartitionedMeshReader.h"
#include <mpi.h>
#include <fstream>
#include <numeric>
#include "BaseLib/FileTools.h"
#include "BaseLib/Logging.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 32 of file NodePartitionedMeshReader.cpp.

33{
34 bool const result = value <= std::numeric_limits<TYPE>::max();
35 if (!result)
36 {
37 ERR("The value {:d} is too large for conversion.", value);
38 ERR("Maximum available size is {:d}.",
39 std::numeric_limits<TYPE>::max());
40 }
41 return result;
42}
void ERR(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:45

References ERR().