/[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 2641 by jfenwick, Mon Aug 31 07:41:49 2009 UTC revision 2642 by jfenwick, Tue Sep 1 04:15:50 2009 UTC
# Line 1554  void MeshAdapter::saveVTK(const std::str Line 1554  void MeshAdapter::saveVTK(const std::str
1554     TMPMEMFREE(names);     TMPMEMFREE(names);
1555  }  }
1556    
1557    bool MeshAdapter::ownSample(int fs_code, index_t id) const
1558    {
1559        index_t myFirstNode=0, myLastNode=0, k=0;
1560        index_t* globalNodeIndex=0;
1561        Finley_Mesh* mesh_p=m_finleyMesh.get();
1562        if (fs_code == FINLEY_REDUCED_NODES)
1563        {
1564        myFirstNode = Finley_NodeFile_getFirstReducedNode(mesh_p->Nodes);
1565        myLastNode = Finley_NodeFile_getLastReducedNode(mesh_p->Nodes);
1566        globalNodeIndex = Finley_NodeFile_borrowGlobalReducedNodesIndex(mesh_p->Nodes);
1567        }
1568        else
1569        {
1570        myFirstNode = Finley_NodeFile_getFirstNode(mesh_p->Nodes);
1571        myLastNode = Finley_NodeFile_getLastNode(mesh_p->Nodes);
1572        globalNodeIndex = Finley_NodeFile_borrowGlobalNodesIndex(mesh_p->Nodes);
1573        }
1574        k=globalNodeIndex[id];
1575        return static_cast<bool>( (myFirstNode <= k) && (k < myLastNode) );
1576    }
1577    
1578    
1579    
1580  //  //
1581  // creates a SystemMatrixAdapter stiffness matrix an initializes it with zeros  // creates a SystemMatrixAdapter stiffness matrix an initializes it with zeros
1582  //  //

Legend:
Removed from v.2641  
changed lines
  Added in v.2642

  ViewVC Help
Powered by ViewVC 1.1.26