/[escript]/branches/diaplayground/finley/src/CPPAdapter/MeshAdapter.cpp
ViewVC logotype

Diff of /branches/diaplayground/finley/src/CPPAdapter/MeshAdapter.cpp

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

revision 1043 by ksteube, Wed Feb 14 04:40:49 2007 UTC revision 1044 by gross, Mon Mar 19 07:29:31 2007 UTC
# Line 1122  void MeshAdapter::setTags(const int func Line 1122  void MeshAdapter::setTags(const int func
1122    return;    return;
1123  }  }
1124    
1125    void MeshAdapter::setTagMap(const std::string& name,  int tag)
1126    {
1127      Finley_Mesh* mesh=m_finleyMesh.get();
1128      Finley_Mesh_addTagMap(mesh, name.c_str(),tag);
1129      checkPasoError();
1130      // throwStandardException("MeshAdapter::set TagMap is not implemented.");
1131    }
1132    
1133    int MeshAdapter::getTag(const std::string& name) const
1134    {
1135      Finley_Mesh* mesh=m_finleyMesh.get();
1136      int tag=0;
1137      tag=Finley_Mesh_getTag(mesh, name.c_str());
1138      checkPasoError();
1139      // throwStandardException("MeshAdapter::getTag is not implemented.");
1140      return tag;
1141    }
1142    
1143    bool MeshAdapter::isValidTagName(const std::string& name) const
1144    {
1145      Finley_Mesh* mesh=m_finleyMesh.get();
1146      return Finley_Mesh_isValidTagName(mesh,name.c_str());
1147    }
1148    
1149    std::string MeshAdapter::showTagNames() const
1150    {
1151      stringstream temp;
1152      Finley_Mesh* mesh=m_finleyMesh.get();
1153      Finley_TagMap* tag_map=mesh->TagMap;
1154      while (tag_map) {
1155         temp << tag_map->name;
1156         tag_map=tag_map->next;
1157         if (tag_map) temp << ", ";
1158      }
1159      return temp.str();
1160    }
1161    
1162  }  // end of namespace  }  // end of namespace

Legend:
Removed from v.1043  
changed lines
  Added in v.1044

  ViewVC Help
Powered by ViewVC 1.1.26