Changeset 19082


Ignore:
Timestamp:
02/04/15 08:30:38 (10 years ago)
Author:
bdef
Message:

CHG:change to flip lock and colapsing relation

File:
1 edited

Legend:

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

    r19057 r19082  
    723723                                /*Increase of the domain is on the downstream node in term of sediment head*/
    724724                                if(sedhead[j] == sedheadmin){
    725                                         if(old_active[j]==0) eplzigzag_counter[basalelement->nodes[j]->Lid()] ++;
    726                                         vec_mask->SetValue(basalelement->nodes[j]->Sid(),1.,INS_VAL);
     725                                        if(old_active[j]==0) {
     726                                                eplzigzag_counter[basalelement->nodes[j]->Lid()] ++;
     727                                                if(eplzigzag_counter[basalelement->nodes[i]->Lid()]<eplflip_lock |eplflip_lock==0){
     728                                                        vec_mask->SetValue(basalelement->nodes[j]->Sid(),1.,INS_VAL);
     729                                                }
     730                                                else{
     731                                                        vec_mask->SetValue(basalelement->nodes[j]->Sid(),0.,INS_VAL);
     732                                                }
     733                                        }
    727734                                }
    728735                        }
Note: See TracChangeset for help on using the changeset viewer.