Changeset 17029


Ignore:
Timestamp:
12/19/13 05:44:46 (11 years ago)
Author:
jbondzio
Message:

CHG: fixed Postprocessing of Enthalpy

File:
1 edited

Legend:

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

    r17027 r17029  
    184184
    185185/*Finite Element Analysis*/
    186 void           EnthalpyAnalysis::Core(FemModel* femmodel){/*{{{*/
     186void EnthalpyAnalysis::Core(FemModel* femmodel){/*{{{*/
    187187        _error_("not implemented");
    188188}/*}}}*/
     
    821821
    822822/*Modules*/
    823 void EnthalpyAnalysis::PostProcessing(FemModel* femmodel){/*{{{*/
     823/*{{{*/
     824void EnthalpyAnalysis::PostProcessing(FemModel* femmodel){
     825        /*Intermediaries*/
     826        int solution_type;
    824827
    825828        /*Compute basal melting rates: */
     
    829832        }
    830833
    831         /*Update basal dirichlet BCs for enthalpy: */
    832         for(int i=0;i<femmodel->elements->Size();i++){
    833                 Element* element=dynamic_cast<Element*>(femmodel->elements->GetObjectByOffset(i));
    834                 UpdateBasalConstraints(element);
     834        /*Update basal dirichlet BCs for enthalpy in transient runs: */
     835        femmodel->parameters->FindParam(&solution_type,SolutionTypeEnum);
     836        if(solution_type==TransientSolutionEnum){
     837                for(int i=0;i<femmodel->elements->Size();i++){
     838                        Element* element=dynamic_cast<Element*>(femmodel->elements->GetObjectByOffset(i));
     839                        UpdateBasalConstraints(element);
     840                }
    835841        }
    836842}/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.