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

Diff of /trunk/finley/src/CPPAdapter/MeshAdapter.cpp

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

revision 766 by woo409, Mon Jun 26 13:12:56 2006 UTC revision 767 by gross, Fri Jun 30 07:29:08 2006 UTC
# Line 1083  int MeshAdapter::getReferenceNoFromSampl Line 1083  int MeshAdapter::getReferenceNoFromSampl
1083    return out;    return out;
1084  }  }
1085    
1086    void MeshAdapter::setTags(const int functionSpaceType, const int newTag, const escript::Data& mask) const
1087    {
1088      Finley_Mesh* mesh=m_finleyMesh.get();
1089      escriptDataC tmp=mask.getDataC();
1090      switch(functionSpaceType) {
1091           case(Nodes):
1092              Finley_NodeFile_setTags(mesh->Nodes,newTag,&tmp);
1093              break;
1094           case(DegreesOfFreedom):
1095              throw FinleyAdapterException("Error - DegreesOfFreedom does not support tags");
1096              break;
1097           case(ReducedDegreesOfFreedom):
1098              throw FinleyAdapterException("Error - ReducedDegreesOfFreedom does not support tags");
1099              break;
1100           case(Elements):
1101              Finley_ElementFile_setTags(mesh->Elements,newTag,&tmp);
1102              break;
1103           case(FaceElements):
1104              Finley_ElementFile_setTags(mesh->FaceElements,newTag,&tmp);
1105              break;
1106           case(Points):
1107              Finley_ElementFile_setTags(mesh->Points,newTag,&tmp);
1108              break;
1109           case(ContactElementsZero):
1110              Finley_ElementFile_setTags(mesh->ContactElements,newTag,&tmp);
1111              break;
1112           case(ContactElementsOne):
1113              Finley_ElementFile_setTags(mesh->ContactElements,newTag,&tmp);
1114              break;
1115           default:
1116              stringstream temp;
1117              temp << "Error - Finley does not know anything about function space type " << functionSpaceType;
1118              throw FinleyAdapterException(temp.str());
1119      }
1120      checkFinleyError();
1121      return;
1122    }
1123    
1124    
1125  }  // end of namespace  }  // end of namespace

Legend:
Removed from v.766  
changed lines
  Added in v.767

  ViewVC Help
Powered by ViewVC 1.1.26