/[escript]/branches/windows_from_1383_trunk/escript/src/FunctionSpace.cpp
ViewVC logotype

Diff of /branches/windows_from_1383_trunk/escript/src/FunctionSpace.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1421 by trankine, Tue Feb 26 10:17:33 2008 UTC revision 1422 by trankine, Tue Feb 26 13:44:12 2008 UTC
# Line 70  FunctionSpace::getDomain() const Line 70  FunctionSpace::getDomain() const
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    
# Line 86  FunctionSpace::toString() const Line 84  FunctionSpace::toString() const
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  {  {

Legend:
Removed from v.1421  
changed lines
  Added in v.1422

  ViewVC Help
Powered by ViewVC 1.1.26