Changeset 28252


Ignore:
Timestamp:
05/03/24 10:37:17 (11 months ago)
Author:
Mathieu Morlighem
Message:

BUG: fixing compiler warnings

Location:
issm/trunk-jpl/src/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp

    r28251 r28252  
    33043304        /*build friction object, used later on: */
    33053305        /*dim=4 is special for HO, which is actually 2.5D*/
    3306         Friction* friction=new Friction(element,dim==3?2.5:1.0);
     3306        Friction* friction=NULL;
     3307        if(dim==3)
     3308         friction = new Friction(element, 2.5);
     3309        else
     3310         friction = new Friction(element, 1);
    33073311
    33083312        /*Recover portion of element that is grounded*/
  • issm/trunk-jpl/src/c/modules/SurfaceMassBalancex/Gembx.cpp

    r28250 r28252  
    661661                        IssmDouble aice=0.0;
    662662                        int lice=0;
    663                         for(int l=0;(l<m & d[l]<dPHC-Dtol);l++){
     663                        for(int l=0;(l<m && d[l]<dPHC-Dtol);l++){
    664664                                depthsnow=depthsnow+dz[l];
    665665                                lice=l+1;
Note: See TracChangeset for help on using the changeset viewer.