Changeset 26694


Ignore:
Timestamp:
12/02/21 06:56:02 (3 years ago)
Author:
Mathieu Morlighem
Message:

CHG: final bug

File:
1 edited

Legend:

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

    r26692 r26694  
    12471247
    12481248   /*Weights*/
    1249    IssmDouble loadweights_g[NUMVERTICES2D];
     1249   IssmDouble loadweights_g[NUMVERTICES];
    12501250   IssmDouble total_weight = 0;
    12511251
     
    21812181        IssmDouble lsf[NUMVERTICES];
    21822182
    2183         if(!IsIceInElement())return 0;
     2183        if(!IsIceInElement()) return 0;
    21842184
    21852185        ::GetVerticesCoordinates(&xyz_list[0][0],vertices,NUMVERTICES);
     
    22082208                /*Account for scaling factor averaged over subelement 2D area*/
    22092209                if(scaled==true){
    2210                         IssmDouble* scalefactor_vertices   = xNew<IssmDouble>(NUMVERTICES);
     2210                        IssmDouble scalefactor_vertices[NUMVERTICES];
    22112211                        Element::GetInputListOnVertices(&scalefactor_vertices[0],MeshScaleFactorEnum);
    22122212                        /*Compute loop only over lower vertices: i<NUMVERTICES2D*/
     
    22142214                        for(int i=0;i<NUMVERTICES2D;i++) scalefactor += weights[i]/phi*scalefactor_vertices[i];
    22152215                        base = base*scalefactor;
    2216                         xDelete<IssmDouble>(scalefactor_vertices);
    22172216                }
    22182217        }
Note: See TracChangeset for help on using the changeset viewer.