Changeset 14576


Ignore:
Timestamp:
04/15/13 13:19:09 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: cppcheck changes

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

Legend:

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

    r14569 r14576  
    207207void IoModel::DeclareIndependents(void){
    208208
    209         int         i;
    210         bool        autodiff                = false;
    211         int         num_independent_objects;
     209        int  i;
     210        bool autodiff = false;
     211        int  num_independent_objects;
    212212
    213213        int *names = NULL;
    214214        int *types = NULL;
    215215
    216         int         numberofvertices;
    217         int         dummy;
    218         bool        keep=false;
     216        int  numberofvertices,dummy;
     217        bool keep=false;
    219218
    220219        /*Initialize array detecting whether data[i] is an independent AD mode variable: */
     
    228227
    229228                #ifdef _HAVE_ADOLC_
    230 
    231                 /*Start trace: {{{*/
     229                /*Start trace*/
    232230                this->FetchData(&keep,AutodiffKeepEnum);
    233231                if(keep)trace_on(1,1);
    234232                else    trace_on(1);
    235233
    236                 /*}}}*/
    237                 /*build dataset made of independent objects: {{{*/
     234                /*build dataset made of independent objects:*/
    238235                this->independent_objects=new DataSet();
    239236                this->FetchData(&num_independent_objects,AutodiffNumIndependentObjectsEnum);
     
    257254                        xDelete<int>(names);
    258255                        xDelete<int>(types);
    259                 } /*}}}*/
    260 
     256                }
    261257                #else
    262258                /*if we asked for AD computations, we have a problem!: */
  • issm/trunk-jpl/src/c/classes/objects/Elements/Penta.cpp

    r14529 r14576  
    15781578void  Penta::InputToResult(int enum_type,int step,IssmDouble time){
    15791579
    1580         int    i;
    15811580        bool   found = false;
    15821581        Input *input = NULL;
     
    21802179void  Penta::MigrateGroundingLine(IssmDouble* old_floating_ice,IssmDouble* sheet_ungrounding){
    21812180
    2182         int     i,migration_style,unground;
     2181        int     i,migration_style;
    21832182        bool    floatingelement = false;
    21842183        IssmDouble  bed_hydro,yts,gl_melting_rate;
     
    26842683Tria*  Penta::SpawnTria(int g0, int g1, int g2){
    26852684
    2686         int   i,analysis_counter;
     2685        int   analysis_counter;
    26872686        int   indices[3];
    26882687        int   zero=0;
     
    27322731   IssmDouble h[NUMVERTICES];                                   // ice thickness (m)           
    27332732        IssmDouble s[NUMVERTICES];                                      // surface elevation (m)
    2734         IssmDouble a_pos[NUMVERTICES];                          // Hs-SMB relation parameter
    27352733        IssmDouble b_pos[NUMVERTICES];                          // Hs-SMB relation parameter
    2736         IssmDouble a_neg[NUMVERTICES];                          // Hs-SMB relation parameter
    27372734        IssmDouble b_neg[NUMVERTICES];                          // Hs-SMB relation paremeter
    2738         IssmDouble Hc[NUMVERTICES];                                     // elevation of transition between accumulation regime and ablation regime
    27392735        IssmDouble Href[NUMVERTICES];                                   // reference elevation from which deviations are used to calculate the SMB adjustment
    27402736        IssmDouble Smbref[NUMVERTICES];                         // reference SMB to which deviations are added
    2741         IssmDouble smb_pos_max[NUMVERTICES];            // maximum SMB value in the accumulation regime
    2742         IssmDouble smb_pos_min[NUMVERTICES];            // minimum SMB value in the accumulation regime
    27432737   IssmDouble rho_water;                   // density of fresh water
    27442738        IssmDouble rho_ice;                     // density of ice
     
    28842878
    28852879        /*Intermediaries*/
    2886         IssmInt    i,j;
     2880        int        i;
    28872881        int        penta_type;
    28882882        int        penta_node_ids[6];
Note: See TracChangeset for help on using the changeset viewer.