Changeset 15964


Ignore:
Timestamp:
08/26/13 20:05:36 (12 years ago)
Author:
seroussi
Message:

CHG: keep working on GL changes

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

Legend:

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

    r15963 r15964  
    1125311253                                        nodes[i]->inputs->AddInput(new BoolInput(MaskVertexongroundediceEnum,false));
    1125411254                                }
    11255                                 else if(migration_style==SoftMigrationEnum && reCast<int,IssmDouble>(sheet_ungrounding[nodes[i]->Sid()])){
     11255                                else if(migration_style==SoftMigrationEnum && reCast<int,IssmDouble>(sheet_ungrounding[vertices[i]->Sid()])){
    1125611256                                        s[i]        = (1-density)*h[i];
    1125711257                                        b[i]        = -density*h[i];
     
    1134111341                        if(bed_hydro>r[i]){
    1134211342                                /*Vertex that could potentially unground, flag it*/
    11343                                 potential_ungrounding->SetValue(nodes[i]->Sid(),1,INS_VAL);
     11343                                potential_ungrounding->SetValue(vertices[i]->Sid(),1,INS_VAL);
    1134411344                        }
    1134511345                }
     
    1135611356        for(i=0;i<NUMVERTICES;i++){
    1135711357                if (reCast<bool,IssmDouble>(vertices_potentially_ungrounding[nodes[i]->Sid()])){
    11358                         vec_nodes_on_iceshelf->SetValue(nodes[i]->Sid(),1,INS_VAL);
     11358                        vec_nodes_on_iceshelf->SetValue(vertices[i]->Sid(),1,INS_VAL);
    1135911359
    1136011360                        /*If node was not on ice shelf, we flipped*/
    11361                         if(nodes_on_iceshelf[nodes[i]->Sid()]==0){
     11361                        if(nodes_on_iceshelf[vertices[i]->Sid()]==0){
    1136211362                                nflipped++;
    1136311363                        }
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r15963 r15964  
    73127312#ifdef _HAVE_GROUNDINGLINE_
    73137313/*FUNCTION Tria::MigrateGroundingLine{{{*/
    7314 void  Tria::MigrateGroundingLine(IssmDouble* sheet_ungrounding){
     7314void  Tria::MigrateGroundingLine(IssmDouble* phi_ungrounding){
    73157315
    73167316        int        i,migration_style;
     
    73637363                                        nodes[i]->inputs->AddInput(new BoolInput(MaskVertexongroundediceEnum,false));
    73647364                                }
    7365                                 else if(migration_style==SoftMigrationEnum && reCast<bool>(sheet_ungrounding[nodes[i]->Sid()])){
     7365                                else if(migration_style==SoftMigrationEnum && reCast<bool>(sheet_ungrounding[vertices[i]->Sid()])){
     7366                                //else if(migration_style==SoftMigrationEnum && phi_ungrounding[vertices[i]->Sid()]<0.){
    73667367                                        s[i]        = (1-density)*h[i];
    73677368                                        b[i]        = -density*h[i];
     
    74137414                if(migration_style==SoftMigrationEnum){
    74147415                        bed_hydro=-density*h[i];
    7415                         if(phi[i]<0. || bed_hydro<=r[i] || reCast<bool>(sheet_ungrounding[nodes[i]->Sid()])){
     7416                        //if(phi[i]<0. || bed_hydro<=r[i] || phi_ungrounding[vertices[i]->Sid()]<0.){
     7417                        if(phi[i]<0. || bed_hydro<=r[i] || reCast<bool>(sheet_ungrounding[vertices[i]->Sid()])){
    74167418                                phi[i]=h[i]+r[i]/density;
    74177419                        }
     
    74447446                        if(bed_hydro>r[i]){
    74457447                                /*Vertex that could potentially unground, flag it*/
    7446                                 potential_ungrounding->SetValue(nodes[i]->Sid(),1,INS_VAL);
     7448                                potential_ungrounding->SetValue(vertices[i]->Sid(),1,INS_VAL);
    74477449                        }
    74487450                }
     
    74587460        /*Go through nodes, and whoever is on the potential_ungrounding, ends up in nodes_on_iceshelf: */
    74597461        for(i=0;i<3;i++){
    7460                 if (reCast<bool>(vertices_potentially_ungrounding[nodes[i]->Sid()])){
    7461                         vec_nodes_on_iceshelf->SetValue(nodes[i]->Sid(),1,INS_VAL);
     7462                if (reCast<bool>(vertices_potentially_ungrounding[vertices[i]->Sid()])){
     7463                        vec_nodes_on_iceshelf->SetValue(vertices[i]->Sid(),1,INS_VAL);
    74627464
    74637465                        /*If node was not on ice shelf, we flipped*/
    7464                         if(nodes_on_iceshelf[nodes[i]->Sid()]==0){
     7466                        if(nodes_on_iceshelf[vertices[i]->Sid()]==0){
    74657467                                nflipped++;
    74667468                        }
Note: See TracChangeset for help on using the changeset viewer.