Changeset 26324
- Timestamp:
- 06/15/21 08:30:57 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/LevelsetAnalysis.cpp
r26320 r26324 553 553 554 554 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); 556 556 } 557 557 } … … 582 582 for(int in=0;in<numnodes;in++){ 583 583 Node* node=element->GetNode(in); 584 if(constraint_nodes[node-> Sid()]==1.){584 if(constraint_nodes[node->Pid()]==1.){ 585 585 isconnected = true; 586 586 break; … … 600 600 surface_input->GetInputValue(&surface,gauss); 601 601 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.){ 603 603 local_nflipped++; 604 vec_constraint_nodes->SetValue(node-> Sid(),1.0,INS_VAL);604 vec_constraint_nodes->SetValue(node->Pid(),1.0,INS_VAL); 605 605 } 606 606 } … … 631 631 if(!node->IsActive()) continue; 632 632 633 if(constraint_nodes[node-> Sid()]>0.){633 if(constraint_nodes[node->Pid()]>0.){ 634 634 node->ApplyConstraint(0,+1.); 635 635 }
Note:
See TracChangeset
for help on using the changeset viewer.