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

Definition at line 27 of file geomObjectsUtil.cpp.

29 {
30
31 std::ostringstream oss;
32
33 oss << "Error: Number of parameters needed to create geometry = "
34 << geom_type << " are "
35 << util::io::printStr(num_params_needed, 0)
36 << ". But the number of parameters provided are "
37 << params.size()
38 << " and the parameters are "
39 << util::io::printStr(params, 0)
40 << ". Exiting.\n";
41
42 return oss.str();
43 }
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: