Ignore:
Timestamp:
04/25/13 15:59:57 (12 years ago)
Author:
Mathieu Morlighem
Message:

NEW: GetVerticesCoordinates now relies on vertices rather than nodes (change required for higher order elements)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/shared/Elements/GetVerticesCoordinates.cpp

    r12475 r14763  
    55#include "./elements.h"
    66
    7 void GetVerticesCoordinates(IssmDouble* xyz,  Node** nodes, int numvertices){
     7void GetVerticesCoordinates(IssmDouble* xyz,Vertex** vertices, int numvertices){
    88
    9         /*In debugging mode, check that nodes is not a NULL pointer*/
    10         _assert_(nodes);
     9        _assert_(vertices);
     10        _assert_(xyz);
    1111
    1212        for(int i=0;i<numvertices;i++) {
    13                 xyz[i*3+0]=nodes[i]->GetX();
    14                 xyz[i*3+1]=nodes[i]->GetY();
    15                 xyz[i*3+2]=nodes[i]->GetZ();
     13                xyz[i*3+0]=vertices[i]->GetX();
     14                xyz[i*3+1]=vertices[i]->GetY();
     15                xyz[i*3+2]=vertices[i]->GetZ();
    1616        }
    1717}
Note: See TracChangeset for help on using the changeset viewer.