Ignore:
Timestamp:
10/20/13 20:31:07 (11 years ago)
Author:
Mathieu Morlighem
Message:

NEW: merging thermal_core with enthalpy_core (removing EnthalpySolution), and replacing InputToResult by OutputRequest

File:
1 edited

Legend:

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

    r16363 r16470  
    2222        int    i;
    2323        IssmDouble starttime,finaltime,dt,yts;
    24         bool   isstressbalance,ismasstransport,isFS,isthermal,isgroundingline,isenthalpy,isdelta18o,isgia;
     24        bool   isstressbalance,ismasstransport,isFS,isthermal,isgroundingline,isdelta18o,isgia;
    2525        bool   save_results,dakota_analysis;
    2626        bool   time_adapt=false;
     
    4949        femmodel->parameters->FindParam(&isgia,TransientIsgiaEnum);
    5050        femmodel->parameters->FindParam(&isgroundingline,TransientIsgroundinglineEnum);
    51         femmodel->parameters->FindParam(&isenthalpy,ThermalIsenthalpyEnum);
    5251        femmodel->parameters->FindParam(&isFS,FlowequationIsFSEnum);
    5352        if(isgroundingline) femmodel->parameters->FindParam(&groundingline_migration,GroundinglineMigrationEnum);
     
    116115                        if(VerboseSolution()) _printf0_("   computing temperatures\n");
    117116                        #ifdef _HAVE_THERMAL_
    118                         if(isenthalpy==0){
    119                                 thermal_core(femmodel);
    120                         }
    121                         else{
    122                                 enthalpy_core(femmodel);
    123                                 PostprocessingEnthalpyx(femmodel);
    124                         }
     117                        thermal_core(femmodel);
    125118                        #else
    126119                        _error_("ISSM was not compiled with thermal capabilities. Exiting");
     
    152145                        #endif
    153146                        if(save_results){
    154                                 InputToResultx(femmodel,SurfaceEnum);
    155                                 InputToResultx(femmodel,BedEnum);
    156                                 InputToResultx(femmodel,MaskGroundediceLevelsetEnum);
     147                                const char* outputs [] = {"Surface","Bed","MaskGroundediceLevelset"};
     148                                femmodel->RequestedOutputsx(&femmodel->results,(char**)&outputs[0],3);
    157149                        }
    158150                }
Note: See TracChangeset for help on using the changeset viewer.