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/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 33 of file NodePartitionedMeshReader.cpp.

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

References ERR().

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