Changeset 17258


Ignore:
Timestamp:
02/12/14 08:47:43 (11 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixed Transform solution going in circles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Element.cpp

    r17255 r17258  
    725725}/*}}}*/
    726726void Element::TransformSolutionCoord(IssmDouble* values,int numnodes,int transformenum){/*{{{*/
    727         this->TransformSolutionCoord(values,this->nodes,numnodes,transformenum);
     727
     728        /*All nodes have the same Coordinate System*/
     729        int* cs_array = xNew<int>(numnodes);
     730        for(int i=0;i<numnodes;i++) cs_array[i]=transformenum;
     731
     732        /*Call core*/
     733        this->TransformSolutionCoord(values,this->nodes,numnodes,cs_array);
     734
     735        /*Clean-up*/
     736        xDelete<int>(cs_array);
    728737}/*}}}*/
    729738void Element::TransformSolutionCoord(IssmDouble* solution,int numnodes,int* cs_array){/*{{{*/
Note: See TracChangeset for help on using the changeset viewer.