Changeset 26324


Ignore:
Timestamp:
06/15/21 08:30:57 (4 years ago)
Author:
Mathieu Morlighem
Message:

CHG: use Pid instead of Sid to improve scaling

File:
1 edited

Legend:

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

    r26320 r26324  
    553553
    554554                                        if((surface_crevasse-surface>0. || crevassedepth-thickness>0.) && bed<0.){
    555                                                 vec_constraint_nodes->SetValue(node->Sid(),1.0,INS_VAL);
     555                                                vec_constraint_nodes->SetValue(node->Pid(),1.0,INS_VAL);
    556556                                        }
    557557                                }
     
    582582                                for(int in=0;in<numnodes;in++){
    583583                                        Node* node=element->GetNode(in);
    584                                         if(constraint_nodes[node->Sid()]==1.){
     584                                        if(constraint_nodes[node->Pid()]==1.){
    585585                                                isconnected = true;
    586586                                                break;
     
    600600                                                surface_input->GetInputValue(&surface,gauss);
    601601
    602                                                 if((surface_crevasse-surface>0. || crevassedepth-thickness>0.) && bed<0. && levelset>-300. && levelset<0. && constraint_nodes[node->Sid()]==0.){
     602                                                if((surface_crevasse-surface>0. || crevassedepth-thickness>0.) && bed<0. && levelset>-300. && levelset<0. && constraint_nodes[node->Pid()]==0.){
    603603                                                        local_nflipped++;
    604                                                         vec_constraint_nodes->SetValue(node->Sid(),1.0,INS_VAL);
     604                                                        vec_constraint_nodes->SetValue(node->Pid(),1.0,INS_VAL);
    605605                                                }
    606606                                        }
     
    631631                                if(!node->IsActive()) continue;
    632632
    633                                 if(constraint_nodes[node->Sid()]>0.){
     633                                if(constraint_nodes[node->Pid()]>0.){
    634634                                        node->ApplyConstraint(0,+1.);
    635635                                }
Note: See TracChangeset for help on using the changeset viewer.