Changeset 17045


Ignore:
Timestamp:
12/23/13 06:44:06 (11 years ago)
Author:
jbondzio
Message:

BUG basal conditions corrected

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

Legend:

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

    r17029 r17045  
    774774                        element->EnthalpyToThermal(&temperature[i],&waterfraction[i],values[i],pressure[i]);
    775775                        if(waterfraction[i]<0.) _error_("Negative water fraction found in solution vector");
    776                         if(waterfraction[i]>1.) _error_("Water fraction >1 found in solution vector");
     776                        //if(waterfraction[i]>1.) _error_("Water fraction >1 found in solution vector");
    777777                }
    778778                element->AddInput(EnthalpyEnum,values,P1Enum);
     
    948948
    949949        /******** DRAINAGE *****************************************/
    950         IssmDouble* drainrate_column  = xNew<IssmDouble>(numsegments); //TODO: xDelete?
     950        IssmDouble* drainrate_column  = xNew<IssmDouble>(numsegments);
    951951        IssmDouble* drainrate_element = xNew<IssmDouble>(numsegments);
    952952        for(is=0;is<numsegments;is++)   drainrate_column[is]=0.;
     
    11161116                        setspc=((enthalpyup<PureIceEnthalpy(element,pressureup)) && (watercolumn>=0.))?true:false;
    11171117                }
    1118                 else if(watercolumn>0.) // case H<Hpmp && watercolumn>0.
    1119                         setspc=true;
    11201118                else
    11211119                        setspc = false;
     1120
     1121
    11221122
    11231123                node=element->GetNode(indices[i]);
  • issm/trunk-jpl/src/c/cores/thermal_core.cpp

    r17027 r17045  
    4848                InputDuplicatex(femmodel,EnthalpyEnum,EnthalpyPicardEnum);
    4949
    50                 /*Post process*/
    51                 enthalpy_analysis = new EnthalpyAnalysis();
    52                 enthalpy_analysis->PostProcessing(femmodel);
    53                 delete enthalpy_analysis;
     50                if(solution_type!=SteadystateSolutionEnum){
     51                        /*Post process*/
     52                        enthalpy_analysis = new EnthalpyAnalysis();
     53                        enthalpy_analysis->PostProcessing(femmodel);
     54                        delete enthalpy_analysis;
     55                }
    5456        }
    5557        else{
Note: See TracChangeset for help on using the changeset viewer.