PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
anonymous_namespace{geomObjects.cpp} Namespace Reference

Functions

std::string printErrMsg (const std::string &geom_type, const std::vector< double > &params, const std::vector< size_t > &num_params_needed)
 

Function Documentation

◆ printErrMsg()

std::string anonymous_namespace{geomObjects.cpp}::printErrMsg ( const std::string &  geom_type,
const std::vector< double > &  params,
const std::vector< size_t > &  num_params_needed 
)

Definition at line 23 of file geomObjects.cpp.

25 {
26
27 std::ostringstream oss;
28
29 oss << "Error: Number of parameters needed to create geometry = "
30 << geom_type << " are "
31 << util::io::printStr(num_params_needed, 0)
32 << ". But the number of parameters provided are "
33 << params.size()
34 << " and the parameters are "
35 << util::io::printStr(params, 0)
36 << ". Exiting.\n";
37
38 return oss.str();
39 }
std::string printStr(const T &msg, int nt=print_default_tab)
Returns formatted string for output.
Definition io.h:96

References util::io::printStr().

Here is the call graph for this function: