PeriDEM 0.2.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 16 of file geomObjects.cpp.

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

References util::io::printStr().

Here is the call graph for this function: