Changeset 15968


Ignore:
Timestamp:
08/27/13 09:39:47 (12 years ago)
Author:
seroussi
Message:

CHG: cosmetics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/GroundinglineMigrationx/GroundinglineMigrationx.cpp

    r15967 r15968  
    1212        int                 migration_style,analysis_type;
    1313        IssmDouble         *vertices_potentially_ungrounding = NULL;
    14         IssmDouble         *vertices_ungrounding             = NULL;
     14        IssmDouble         *phi_ungrounding                  = NULL;
    1515        Element            *element                          = NULL;
    1616
     
    3737
    3838                /*propagate ice shelf into connex areas of the ice sheet that potentially want to unground: */
    39                 vertices_ungrounding=PropagateFloatingiceToGroundedNeighbors(elements,nodes,vertices,parameters,vertices_potentially_ungrounding);
     39                phi_ungrounding=PropagateFloatingiceToGroundedNeighbors(elements,nodes,vertices,parameters,vertices_potentially_ungrounding);
    4040        }
    4141
     
    4343        for(int i=0;i<elements->Size();i++){
    4444                element=dynamic_cast<Element*>(elements->GetObjectByOffset(i));
    45                 element->MigrateGroundingLine(vertices_ungrounding);
     45                element->MigrateGroundingLine(phi_ungrounding);
    4646        }
    4747
    4848        /*free ressouces: */
    4949        xDelete<IssmDouble>(vertices_potentially_ungrounding);
    50         xDelete<IssmDouble>(vertices_ungrounding);
     50        xDelete<IssmDouble>(phi_ungrounding);
    5151}
    5252
     
    5454IssmDouble*    PotentialUngrounding(Elements* elements,Vertices* vertices,Parameters* parameters){
    5555
    56         int      i,numberofvertices;
    57         IssmDouble*  vertices_potentially_ungrounding      = NULL;
    58         Vector<IssmDouble>*      vec_vertices_potentially_ungrounding  = NULL;
    59         Element* element                               = NULL;
     56        int                 i,numberofvertices;
     57        IssmDouble*         vertices_potentially_ungrounding      = NULL;
     58        Vector<IssmDouble>* vec_vertices_potentially_ungrounding  = NULL;
     59        Element*            element                               = NULL;
    6060
    6161        /*Initialize vector with number of vertices*/
     
    8080/*FUNCTION PropagateFloatingiceToGroundedNeighbors {{{*/
    8181IssmDouble*    PropagateFloatingiceToGroundedNeighbors(Elements* elements,Nodes* nodes,Vertices* vertices,Parameters* parameters,IssmDouble* vertices_potentially_ungrounding){
    82 
    83         int      i,analysis_type;
    84         int      numberofvertices;
    85         int      nflipped,local_nflipped;
    86         IssmDouble*  phi                  = NULL;
    87         IssmDouble*  elements_neighboring_floatingce      = NULL;
    88         Vector<IssmDouble>*      vec_elements_neighboring_floatingice = NULL;
    89         Vector<IssmDouble>*      vec_phi              = NULL;
    90         Node*    node                                  = NULL;
    91         Element* element                               = NULL;
     82        int                 i,analysis_type,numberofvertices;
     83        int                 nflipped,local_nflipped;
     84        IssmDouble*         phi                                  = NULL;
     85        IssmDouble*         elements_neighboring_floatingce      = NULL;
     86        Vector<IssmDouble>* vec_elements_neighboring_floatingice = NULL;
     87        Vector<IssmDouble>* vec_phi                              = NULL;
     88        Node*               node                                  = NULL;
     89        Element*            element                               = NULL;
    9290
    9391        /*recover parameters: */
Note: See TracChangeset for help on using the changeset viewer.