PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
anonymous_namespace{complexGeomObjects.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{complexGeomObjects.cpp}::printErrMsg ( const std::string &  geom_type,
const std::vector< double > &  params,
const std::vector< size_t > &  num_params_needed 
)

Definition at line 20 of file complexGeomObjects.cpp.

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

References util::io::printStr().

Here is the call graph for this function: