Changeset 17012


Ignore:
Timestamp:
12/05/13 16:19:47 (11 years ago)
Author:
bdef
Message:

BUG: fixing the update of eplthickness

Location:
issm/trunk-jpl/src/c
Files:
4 edited

Legend:

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

    r17005 r17012  
    5959        iomodel->FetchDataToInput(elements,HydrologydcEplInitialThicknessEnum);
    6060       
     61        elements->InputDuplicate(HydrologydcEplInitialThicknessEnum,HydrologydcEplThicknessEnum);
     62
    6163}/*}}}*/
    6264void HydrologyDCEfficientAnalysis::CreateNodes(Nodes* nodes,IoModel* iomodel){/*{{{*/
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r17006 r17012  
    48344834        IssmDouble  n,A,dt,init_thick;
    48354835        IssmDouble  rho_water,rho_ice;
    4836         IssmDouble  gravity,latentheat,EPLgrad;
     4836        IssmDouble  gravity,latentheat,EPLgrad2;
    48374837        IssmDouble  EPL_N,epl_conductivity;
    48384838        IssmDouble  activeEpl[numdof],thickness[numdof];
     
    48764876                                        EPL_N=gravity*((rho_ice*ice_thickness[i])-(rho_water*(eplhead[i]-bed[i])));
    48774877                                        if(EPL_N<0.0)EPL_N=0.0;
    4878                                         /*Get then the square of th gradient of EPL heads*/
    4879                                         EPLgrad = (epl_slopeX[i]*epl_slopeX[i]+epl_slopeY[i]*epl_slopeY[i]);
     4878                                        /*Get then the square of the gradient of EPL heads*/
     4879                                        EPLgrad2 = (epl_slopeX[i]*epl_slopeX[i]+epl_slopeY[i]*epl_slopeY[i]);
    48804880                                       
    48814881                                        /*And proceed to the real thing*/
    4882                                         thickness[i] = old_thickness[i]*(1+((rho_water*gravity*dt)/(rho_ice*latentheat))*epl_conductivity*EPLgrad-2.0*(A*dt/(pow(n,n)))*(pow(EPL_N,n)));
     4882                                        thickness[i] = old_thickness[i]*(1+((rho_water*gravity*dt)/(rho_ice*latentheat))*epl_conductivity*EPLgrad2-2.0*(A*dt/(pow(n,n)))*(pow(EPL_N,n)));
     4883
    48834884                        }
    48844885                }
  • issm/trunk-jpl/src/c/cores/hydrology_core.cpp

    r16954 r17012  
    8484                        if (isefficientlayer){
    8585                                InputDuplicatex(femmodel,EplHeadEnum,EplHeadOldEnum);
    86                                 InputDuplicatex(femmodel,HydrologydcEplInitialThicknessEnum,HydrologydcEplThicknessEnum);
    87                                 InputDuplicatex(femmodel,HydrologydcEplInitialThicknessEnum,HydrologydcEplThicknessOldEnum);
     86                                InputDuplicatex(femmodel,HydrologydcEplThicknessEnum,HydrologydcEplThicknessOldEnum);
    8887                        }
    8988                       
  • issm/trunk-jpl/src/c/solutionsequences/solutionsequence_hydro_nonlinear.cpp

    r17006 r17012  
    178178                                solutionsequence_linear(femmodel);
    179179
     180                               
    180181                                femmodel->HydrologyEPLThicknessx();
    181182
Note: See TracChangeset for help on using the changeset viewer.