Changeset 16604


Ignore:
Timestamp:
11/01/13 15:40:39 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: moving Enthalpy parameters to EnthalpyAnalysis

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

Legend:

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

    r16542 r16604  
    1010}/*}}}*/
    1111void EnthalpyAnalysis::UpdateParameters(Parameters* parameters,IoModel* iomodel,int solution_enum,int analysis_enum){/*{{{*/
     12
     13        int     numoutputs;
     14        char**  requestedoutputs = NULL;
     15
     16        parameters->AddObject(iomodel->CopyConstantObject(ThermalStabilizationEnum));
     17        parameters->AddObject(iomodel->CopyConstantObject(ThermalIsenthalpyEnum));
     18        parameters->AddObject(iomodel->CopyConstantObject(ThermalIsdynamicbasalspcEnum));
     19
     20        iomodel->FetchData(&requestedoutputs,&numoutputs,ThermalRequestedOutputsEnum);
     21        parameters->AddObject(new IntParam(ThermalNumRequestedOutputsEnum,numoutputs));
     22        if(numoutputs)parameters->AddObject(new StringArrayParam(ThermalRequestedOutputsEnum,requestedoutputs,numoutputs));
     23        iomodel->DeleteData(&requestedoutputs,numoutputs,ThermalRequestedOutputsEnum);
    1224}/*}}}*/
    1325void EnthalpyAnalysis::UpdateElements(Elements* elements,IoModel* iomodel,int analysis_counter,int analysis_type){/*{{{*/
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/CreateParameters.cpp

    r16601 r16604  
    5151        parameters->AddObject(iomodel->CopyConstantObject(TimesteppingTimeStepEnum));
    5252        parameters->AddObject(iomodel->CopyConstantObject(TimesteppingCflCoefficientEnum));
    53         parameters->AddObject(iomodel->CopyConstantObject(ThermalPenaltyFactorEnum));
    54         parameters->AddObject(iomodel->CopyConstantObject(ThermalIsenthalpyEnum));
    55         parameters->AddObject(iomodel->CopyConstantObject(ThermalStabilizationEnum));
    56         parameters->AddObject(iomodel->CopyConstantObject(ThermalIsdynamicbasalspcEnum));
    5753        parameters->AddObject(iomodel->CopyConstantObject(SettingsLowmemEnum));
    5854        parameters->AddObject(iomodel->CopyConstantObject(DebugProfilingEnum));
     
    138134        iomodel->DeleteData(&requestedoutputs,numoutputs,SteadystateRequestedOutputsEnum);
    139135
    140         iomodel->FetchData(&requestedoutputs,&numoutputs,ThermalRequestedOutputsEnum);           
    141         parameters->AddObject(new IntParam(ThermalNumRequestedOutputsEnum,numoutputs));         
    142         if(numoutputs)parameters->AddObject(new StringArrayParam(ThermalRequestedOutputsEnum,requestedoutputs,numoutputs));             
    143         iomodel->DeleteData(&requestedoutputs,numoutputs,ThermalRequestedOutputsEnum);
    144136        /*Deal with mass flux segments: {{{*/
    145137        iomodel->FetchData(&qmu_mass_flux_present,QmuMassFluxSegmentsPresentEnum);
Note: See TracChangeset for help on using the changeset viewer.