/[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 4428 by caltinay, Thu May 30 06:39:10 2013 UTC revision 4431 by caltinay, Fri May 31 07:09:03 2013 UTC
# Line 2029  int MeshAdapter::getTagFromSampleNo(int Line 2029  int MeshAdapter::getTagFromSampleNo(int
2029  void MeshAdapter::setTags(const int functionSpaceType, const int newTag, const escript::Data& mask) const  void MeshAdapter::setTags(const int functionSpaceType, const int newTag, const escript::Data& mask) const
2030  {  {
2031      Finley_Mesh* mesh=m_finleyMesh.get();      Finley_Mesh* mesh=m_finleyMesh.get();
     escriptDataC tmp=mask.getDataC();  
2032      switch(functionSpaceType) {      switch(functionSpaceType) {
2033          case Nodes:          case Nodes:
2034              mesh->Nodes->setTags(newTag, mask);              mesh->Nodes->setTags(newTag, mask);
2035              break;              break;
2036          case ReducedNodes:          case ReducedNodes:
2037              throw FinleyAdapterException("Error - ReducedNodes does not support tags");              throw FinleyAdapterException("Error - ReducedNodes does not support tags");
             break;  
2038          case DegreesOfFreedom:          case DegreesOfFreedom:
2039              throw FinleyAdapterException("Error - DegreesOfFreedom does not support tags");              throw FinleyAdapterException("Error - DegreesOfFreedom does not support tags");
             break;  
2040          case ReducedDegreesOfFreedom:          case ReducedDegreesOfFreedom:
2041              throw FinleyAdapterException("Error - ReducedDegreesOfFreedom does not support tags");              throw FinleyAdapterException("Error - ReducedDegreesOfFreedom does not support tags");
             break;  
2042          case Elements:          case Elements:
2043          case ReducedElements:          case ReducedElements:
2044              Finley_ElementFile_setTags(mesh->Elements,newTag,&tmp);              mesh->Elements->setTags(newTag, mask);
2045              break;              break;
2046          case FaceElements:          case FaceElements:
2047          case ReducedFaceElements:          case ReducedFaceElements:
2048              Finley_ElementFile_setTags(mesh->FaceElements,newTag,&tmp);              mesh->FaceElements->setTags(newTag, mask);
2049              break;              break;
2050          case Points:          case Points:
2051              Finley_ElementFile_setTags(mesh->Points,newTag,&tmp);              mesh->Points->setTags(newTag, mask);
2052              break;              break;
2053          case ContactElementsZero:          case ContactElementsZero:
2054          case ReducedContactElementsZero:          case ReducedContactElementsZero:
2055          case ContactElementsOne:          case ContactElementsOne:
2056          case ReducedContactElementsOne:          case ReducedContactElementsOne:
2057              Finley_ElementFile_setTags(mesh->ContactElements,newTag,&tmp);              mesh->ContactElements->setTags(newTag, mask);
2058              break;              break;
2059          default:          default:
2060              stringstream temp;              stringstream temp;

Legend:
Removed from v.4428  
changed lines
  Added in v.4431

  ViewVC Help
Powered by ViewVC 1.1.26