/[escript]/trunk/escript/src/FunctionSpace.cpp
ViewVC logotype

Diff of /trunk/escript/src/FunctionSpace.cpp

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

revision 1426 by trankine, Wed Feb 27 06:12:15 2008 UTC revision 1716 by gross, Thu Aug 21 05:03:49 2008 UTC
# Line 67  FunctionSpace::getDomain() const Line 67  FunctionSpace::getDomain() const
67    return *m_domain;    return *m_domain;
68  }  }
69    
70  const std::string &  std::string
71  FunctionSpace::toString() const  FunctionSpace::toString() const
72  {  {
73    std::stringstream temp;    std::stringstream temp;
74    temp << m_domain->functionSpaceTypeAsString(m_functionSpaceType)    temp << m_domain->functionSpaceTypeAsString(m_functionSpaceType)
75         << " on " << m_domain->getDescription();         << " on " << m_domain->getDescription();
76    
77    type_str = temp.str();    return temp.str();
   
   return type_str;  
78  }  }
79    
80    
# Line 90  FunctionSpace::toPyString() const Line 88  FunctionSpace::toPyString() const
88    temp << m_domain->functionSpaceTypeAsString(m_functionSpaceType)    temp << m_domain->functionSpaceTypeAsString(m_functionSpaceType)
89         << " on " << m_domain->getDescription();         << " on " << m_domain->getDescription();
90    
91    //toString();    return cvtr(temp.str());
   type_str = temp.str();  
   
   return cvtr(type_str);  
92  }  }
93  #endif  #endif
94    
# Line 198  FunctionSpace::setTags(const int newTag, Line 193  FunctionSpace::setTags(const int newTag,
193     }     }
194  }  }
195    
196    int
197    FunctionSpace::getNumberOfTagsInUse() const
198    {
199       return  m_domain->getNumberOfTagsInUse(m_functionSpaceType);
200    }
201    
202    int*
203    FunctionSpace::borrowListOfTagsInUse() const
204    {
205       return  m_domain->borrowListOfTagsInUse(m_functionSpaceType);
206    }
207    
208    
209    
210    boost::python::list
211    FunctionSpace::getListOfTags() const
212    {
213      boost::python::list taglist;
214      int i;
215      int* tags=borrowListOfTagsInUse();
216      for (i=0;i<getNumberOfTagsInUse();++i) taglist.append(tags[i]);
217      return taglist;
218    }
219    
220  }  // end of namespace  }  // end of namespace

Legend:
Removed from v.1426  
changed lines
  Added in v.1716

  ViewVC Help
Powered by ViewVC 1.1.26