Changeset 15962


Ignore:
Timestamp:
08/26/13 16:43:07 (12 years ago)
Author:
seroussi
Message:

CHG: simplified grounding line arguments

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

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/classes/Elements/Element.h

    r15865 r15962  
    140140
    141141                #ifdef _HAVE_GROUNDINGLINE_
    142                 virtual void   MigrateGroundingLine(IssmDouble* old_floating_ice,IssmDouble* sheet_ungrounding)=0;
     142                virtual void   MigrateGroundingLine(IssmDouble* sheet_ungrounding)=0;
    143143                virtual void   PotentialUngrounding(Vector<IssmDouble>* potential_sheet_ungrounding)=0;
    144144                virtual int    UpdatePotentialUngrounding(IssmDouble* potential_sheet_ungrounding,Vector<IssmDouble>* vec_nodes_on_iceshelf,IssmDouble* nodes_on_iceshelf)=0;
  • TabularUnified issm/trunk-jpl/src/c/classes/Elements/Penta.cpp

    r15959 r15962  
    1120011200#ifdef _HAVE_GROUNDINGLINE_
    1120111201/*FUNCTION Penta::MigrateGroundingLine{{{*/
    11202 void  Penta::MigrateGroundingLine(IssmDouble* old_floating_ice,IssmDouble* sheet_ungrounding){
     11202void  Penta::MigrateGroundingLine(IssmDouble* sheet_ungrounding){
    1120311203
    1120411204        int        i,migration_style;
  • TabularUnified issm/trunk-jpl/src/c/classes/Elements/Penta.h

    r15897 r15962  
    170170
    171171                #ifdef _HAVE_GROUNDINGLINE_
    172                 void   MigrateGroundingLine(IssmDouble* old_floating_ice,IssmDouble* sheet_ungrounding);
     172                void   MigrateGroundingLine(IssmDouble* sheet_ungrounding);
    173173                void   PotentialUngrounding(Vector<IssmDouble>* potential_sheet_ungrounding);
    174174                int    UpdatePotentialUngrounding(IssmDouble* potential_sheet_ungrounding,Vector<IssmDouble>* vec_nodes_on_iceshelf,IssmDouble* nodes_on_iceshelf);
  • TabularUnified issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r15959 r15962  
    73127312#ifdef _HAVE_GROUNDINGLINE_
    73137313/*FUNCTION Tria::MigrateGroundingLine{{{*/
    7314 void  Tria::MigrateGroundingLine(IssmDouble* old_floating_ice,IssmDouble* sheet_ungrounding){
     7314void  Tria::MigrateGroundingLine(IssmDouble* sheet_ungrounding){
    73157315
    73167316        int        i,migration_style;
  • TabularUnified issm/trunk-jpl/src/c/classes/Elements/Tria.h

    r15877 r15962  
    174174                #ifdef _HAVE_GROUNDINGLINE_
    175175                void   PotentialUngrounding(Vector<IssmDouble>* potential_sheet_ungrounding);
    176                 void   MigrateGroundingLine(IssmDouble* oldfloating,IssmDouble* sheet_ungrounding);
     176                void   MigrateGroundingLine(IssmDouble* sheet_ungrounding);
    177177                int    UpdatePotentialUngrounding(IssmDouble* vertices_potentially_ungrounding,Vector<IssmDouble>* vec_nodes_on_iceshelf,IssmDouble* nodes_on_iceshelf);
    178178                #endif
  • TabularUnified issm/trunk-jpl/src/c/modules/GroundinglineMigrationx/GroundinglineMigrationx.cpp

    r15838 r15962  
    1313        IssmDouble         *vertices_potentially_ungrounding = NULL;
    1414        IssmDouble         *vertices_ungrounding             = NULL;
    15         IssmDouble         *old_floatingice                  = NULL;
    16         Vector<IssmDouble> *vec_old_floatingice              = NULL;
    1715        Element            *element                          = NULL;
    1816
     
    4240        }
    4341
    44         /*Create vector with vertices initially floating and serialize*/
    45         vec_old_floatingice=CreateNodesOnFloatingIce(nodes,analysis_type);
    46         old_floatingice=vec_old_floatingice->ToMPISerial();
    47 
    4842        /*Migrate grounding line : */
    4943        for(int i=0;i<elements->Size();i++){
    5044                element=dynamic_cast<Element*>(elements->GetObjectByOffset(i));
    51                 element->MigrateGroundingLine(old_floatingice,vertices_ungrounding);
     45                element->MigrateGroundingLine(vertices_ungrounding);
    5246        }
    5347
    5448        /*free ressouces: */
    55         delete vec_old_floatingice;
    5649        xDelete<IssmDouble>(vertices_potentially_ungrounding);
    5750        xDelete<IssmDouble>(vertices_ungrounding);
    58         xDelete<IssmDouble>(old_floatingice);
    5951}
    6052
Note: See TracChangeset for help on using the changeset viewer.