Changeset 21433


Ignore:
Timestamp:
12/05/16 10:39:12 (8 years ago)
Author:
bdef
Message:

BUG: fixing cleaning bug

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

Legend:

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

    r21431 r21433  
    106106
    107107void HydrologyDCEfficientAnalysis::CreateLoads(Loads* loads, IoModel* iomodel){/*{{{*/
    108         /*Nothing for now*/
    109108
    110109        /*Do we really want DC?*/
     
    152151
    153152        int*     eplzigzag_counter=NULL;
     153        Element* element=NULL;
    154154        femmodel->parameters->FindParam(&eplzigzag_counter,NULL,EplZigZagCounterEnum);
    155155        for(int i=0;i<femmodel->nodes->Size();i++){
     
    377377        for(int iv=0;iv<numvertices;iv++){
    378378                gauss->GaussVertex(iv);
    379 
    380379                connectivity = IssmDouble(basalelement->VertexConnectivity(iv));
    381380                residual_input->GetInputValue(&residual,gauss);
    382381                pe->values[iv]+=residual/connectivity;
    383 
    384382        }
    385383
  • issm/trunk-jpl/src/c/analyses/HydrologyDCInefficientAnalysis.cpp

    r21432 r21433  
    303303        IssmDouble *xyz_list             = NULL;
    304304        Input*      active_element_input = NULL;
     305        Input*      old_wh_input = NULL;
    305306
    306307        /*Fetch number of nodes and dof for this finite element*/
     
    321322        Input* base_input                 = basalelement->GetInput(BaseEnum);
    322323        Input* water_input        = basalelement->GetInput(BasalforcingsGroundediceMeltingRateEnum); _assert_(water_input);
    323 
     324        if(dt!= 0.){old_wh_input = basalelement->GetInput(SedimentHeadOldEnum);                  _assert_(old_wh_input);}
    324325        /*Transfer related Inputs*/
    325326        if(isefficientlayer){
     
    358359                /*Transient and transfer terms*/
    359360                if(dt!=0.){
     361                        old_wh_input->GetInputValue(&water_head,gauss);
    360362                        sediment_storing = SedimentStoring(basalelement,gauss,sed_head_input,base_input);
    361363                        if(isefficientlayer){
Note: See TracChangeset for help on using the changeset viewer.