70 |
const std::string & |
const std::string & |
71 |
FunctionSpace::toString() const |
FunctionSpace::toString() const |
72 |
{ |
{ |
73 |
if( type_str.empty() ) |
std::stringstream temp; |
74 |
{ |
temp << m_domain->functionSpaceTypeAsString(m_functionSpaceType) |
75 |
std::stringstream temp; |
<< " on " << m_domain->getDescription(); |
76 |
temp << m_domain->functionSpaceTypeAsString(m_functionSpaceType) |
|
77 |
<< " on " << m_domain->getDescription(); |
type_str = temp.str(); |
78 |
|
|
|
type_str = temp.str(); |
|
|
} |
|
79 |
return type_str; |
return type_str; |
80 |
} |
} |
81 |
|
|
84 |
PyObject * |
PyObject * |
85 |
FunctionSpace::toPyString() const |
FunctionSpace::toPyString() const |
86 |
{ |
{ |
87 |
std::stringstream temp; |
boost::python::to_python_value<const std::string &> cvtr; |
88 |
|
|
|
temp << m_domain->functionSpaceTypeAsString(m_functionSpaceType) |
|
|
<< " on " << m_domain->getDescription(); |
|
89 |
|
|
90 |
boost::python::to_python_value<const std::string &> cvtr; |
type_str = toString(); |
91 |
|
|
92 |
return cvtr(temp.str()); |
|
93 |
|
return cvtr(type_str); |
94 |
} |
} |
95 |
#endif |
#endif |
96 |
|
|
97 |
|
|
98 |
int |
int |
99 |
FunctionSpace::getTagFromSampleNo(int sampleNo) const |
FunctionSpace::getTagFromSampleNo(int sampleNo) const |
100 |
{ |
{ |