Changeset 15789


Ignore:
Timestamp:
08/10/13 09:38:34 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixed BC

File:
1 edited

Legend:

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

    r15788 r15789  
    29742974
    29752975        int        approximation;
     2976        IssmDouble slopex,slopey;
    29762977        IssmDouble xz_plane[6];
    29772978
     
    29812982
    29822983        /*Get number of nodes for velocity only and base*/
    2983         int         numnodes = this->NumberofNodesVelocity();
    2984         IssmDouble* slopex   = xNew<IssmDouble>(numnodes);
    2985         IssmDouble* slopey   = xNew<IssmDouble>(numnodes);
    2986 
    2987         /*Get slope on each node*/
    2988         GetInputListOnNodes(slopex,BedSlopeXEnum);
    2989         GetInputListOnNodes(slopey,BedSlopeYEnum);
     2984        int  vnumnodes = this->NumberofNodesVelocity();
     2985
     2986        /*Get inputs*/
     2987        Input* slopex_input=inputs->GetInput(BedSlopeXEnum); _assert_(slopex_input);
     2988        Input* slopey_input=inputs->GetInput(BedSlopeYEnum); _assert_(slopey_input);
    29902989
    29912990        /*Loop over basal nodes and update their CS*/
     2991        GaussPenta* gauss = new GaussPenta();
    29922992        for(int i=0;i<3;i++){//FIXME
    2993 
    2994                 /*New X axis             New Z axis*/
    2995                 xz_plane[0]=1.;          xz_plane[3]=-slopex[i]; 
    2996                 xz_plane[1]=0.;          xz_plane[4]=-slopey[i]; 
    2997                 xz_plane[2]=slopex[i];   xz_plane[5]=1.;         
     2993                gauss->GaussNode(this->VelocityInterpolation(),i);
     2994
     2995                slopex_input->GetInputValue(&slopex,gauss);
     2996                slopey_input->GetInputValue(&slopey,gauss);
     2997
     2998                /*New X axis          New Z axis*/
     2999                xz_plane[0]=1.;       xz_plane[3]=-slopex; 
     3000                xz_plane[1]=0.;       xz_plane[4]=-slopey; 
     3001                xz_plane[2]=slopex;   xz_plane[5]=1.;         
    29983002
    29993003                XZvectorsToCoordinateSystem(&this->nodes[i]->coord_system[0][0],&xz_plane[0]);
     
    30013005
    30023006        /*cleanup*/
    3003         xDelete<IssmDouble>(slopex);
    3004         xDelete<IssmDouble>(slopey);
     3007        delete gauss;
    30053008}
    30063009/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.