9 std::string indent(indentwidth,
' ');
10 std::string indent2(indentwidth + 8,
' ');
11 std::cout << indent <<
"shear, " << std::endl;
14 std::cout <<
",\n" << indent2 <<
"angle X: " <<
angleX_m;
16 std::cout <<
",\n" << indent2 <<
"angle Y: " <<
angleY_m;
25 const unsigned int size = bfuncs.size();
27 for (
unsigned int j = 0; j < size; ++j) {
28 std::shared_ptr<Base>& obj = bfuncs[j];
29 obj->trafo_m = obj->trafo_m.mult(shear);
31 if (!obj->divisor_m.empty())
applyShear(obj->divisor_m);
48 }
catch (std::runtime_error& e) {
49 std::cout << e.what() << std::endl;
ippl::Vector< T, Dim > Vector_t
double parseMathExpression(const std::string &str)
std::string::iterator iterator
virtual void apply(std::vector< std::shared_ptr< Base > > &bfuncs)=0
static bool parse(iterator &it, const iterator &end, Function *&fun)
virtual void print(int indent)=0
static bool parse_detail(iterator &it, const iterator &end, Function *&fun)
virtual void apply(std::vector< std::shared_ptr< Base > > &bfuncs)
void applyShear(std::vector< std::shared_ptr< Base > > &bfuncs)
virtual void print(int indentwidth)