Mesh.cc 27.4 KB
Newer Older
1001
1002
1003
    DegreeOfFreedom dof, assDOF;

    associatedToDOF1.push_back(dof1);
Thomas Witkowski's avatar
Thomas Witkowski committed
1004
1005
1006
    for (it = periodicAssociations.begin(); it != end; ++it) {
      int size = static_cast<int>(associatedToDOF1.size());
      for (int i = 0; i < size; i++) {
1007
1008
	dof = associatedToDOF1[i];
	assDOF = (*(it->second))[dof];
Thomas Witkowski's avatar
Thomas Witkowski committed
1009
	if (assDOF == dof2) {
1010
1011
	  return true;
	} else {
Thomas Witkowski's avatar
Thomas Witkowski committed
1012
1013
	  if (assDOF != dof) 
	    associatedToDOF1.push_back(assDOF);
1014
1015
1016
1017
1018
1019
1020
1021
	}
      }
    }
    return false;
  }

  void Mesh::clearMacroFileInfo()
  {
1022
1023
1024
    macroFileInfo->clear(getNumberOfEdges(),
			 getNumberOfVertices());
    DELETE macroFileInfo;
1025
  }
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037

  int Mesh::calcMemoryUsage()
  {
    int result = 0;

    result += sizeof(Mesh);
    for (int i = 0; i < static_cast<int>(macroElements.size()); i++) {
      result += macroElements[i]->calcMemoryUsage();
    }
    
    return result;
  }
1038
}
For faster browsing, not all history is shown. View entire blame