MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
module-cyclocopter.h File Reference

Go to the source code of this file.

Functions

bool mbdyn_cyclocopter_set (void)
 

Function Documentation

bool mbdyn_cyclocopter_set ( void  )

Definition at line 1695 of file module-cyclocopter.cc.

References SetUDE().

Referenced by InitUDE().

1696 {
1697  UserDefinedElemRead *rf;
1698 
1700  if (!SetUDE("cyclocopter" "no" "inflow", rf)) {
1701  delete rf;
1702 
1703  silent_cerr("module-cyclocopter: "
1704  "unable to register \"cyclocopter no inflow\""
1705  << std::endl);
1706 
1707  return false;
1708  }
1709 
1711  if (!SetUDE("cyclocopter" "uniform" "1D", rf)) {
1712  delete rf;
1713 
1714  silent_cerr("module-cyclocopter: "
1715  "unable to register \"cyclocopter uniform 1D\""
1716  << std::endl);
1717 
1718  return false;
1719  }
1720 
1722  if (!SetUDE("cyclocopter" "uniform" "2D", rf)) {
1723  delete rf;
1724 
1725  silent_cerr("module-cyclocopter: "
1726  "unable to register \"cyclocopter uniform 2D\""
1727  << std::endl);
1728 
1729  return false;
1730  }
1731 
1732  rf = new UDERead<CyclocopterPolimi>;
1733  if (!SetUDE("cyclocopter" "Polimi", rf)) {
1734  delete rf;
1735 
1736  silent_cerr("module-cyclocopter: "
1737  "unable to register \"cyclocopter Polimi\""
1738  << std::endl);
1739 
1740  return false;
1741  }
1742 
1743 #if 0
1744  rf = new UDERead<CyclocopterKARI>;
1745  if (!SetUDE("cyclocopter" "KARI", rf)) {
1746  delete rf;
1747 
1748  silent_cerr("module-cyclocopter: "
1749  "unable to register \"cyclocopter KARI\""
1750  << std::endl);
1751 
1752  return false;
1753  }
1754 #endif
1755 
1756  return true;
1757 }
bool SetUDE(const std::string &s, UserDefinedElemRead *rude)
Definition: userelem.cc:97

Here is the call graph for this function: