Changeset 1861


Ignore:
Timestamp:
08/25/09 10:00:32 (16 years ago)
Author:
Mathieu Morlighem
Message:

moved thermalstatic to steadystate

Location:
issm/trunk/src/c/parallel
Files:
2 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/parallel/objectivefunctionC.cpp

    r1854 r1861  
    4646        int     numberofnodes;
    4747               
    48         /*thermalstatic: */
    49         int     thermalstatic=0;
     48        /*steadystate: */
     49        int     steadystate=0;
    5050        int     isstokes=0;
    51         DataSet* results_thermalstatic=NULL;
     51        DataSet* results_steadystate=NULL;
    5252        int dofs01[2]={0,1};
    5353
     
    7272        femmodel->parameters->FindParam((void*)&numberofnodes,"numberofnodes");
    7373        femmodel->parameters->FindParam((void*)&numberofdofspernode,"numberofdofspernode");
    74         femmodel->parameters->FindParam((void*)&thermalstatic,"thermalstatic");
     74        femmodel->parameters->FindParam((void*)&steadystate,"steadystate");
    7575        femmodel->parameters->FindParam((void*)&isstokes,"isstokes");
    7676
     
    8888        inputs->Add(control_type,param_g_copy,1,numberofnodes);
    8989
    90         if(!thermalstatic){
     90        if(!steadystate){
    9191                //Run diagnostic with updated parameters.
    9292                diagnostic_core_nonlinear(&u_g,NULL,NULL,NULL,femmodel,inputs,DiagnosticAnalysisEnum(),sub_analysis_type);
     
    9494        }
    9595        else{
    96                 //Run full thermalstatic solution with updated parameters.
    97                 results_thermalstatic=new DataSet(ResultsEnum());
    98                 thermalstatic_core(results_thermalstatic,model,inputs);
     96                //Run full steadystate solution with updated parameters.
     97                results_steadystate=new DataSet(ResultsEnum());
     98                steadystate_core(results_steadystate,model,inputs);
    9999               
    100100                //get u_g
    101                 results_thermalstatic->FindResult(&u_g,"u_g");
    102                 delete results_thermalstatic;
     101                results_steadystate->FindResult(&u_g,"u_g");
     102                delete results_steadystate;
    103103
    104104                //extract the correct number of dofs (3 or 4)
  • issm/trunk/src/c/parallel/parallel.h

    r1854 r1861  
    1818void thermal_core_nonlinear(Vec* ptg,double* pmelting_offset,FemModel* fem,ParameterInputs* inputs,int analysis_type,int sub_analysis_type);
    1919
    20 void thermalstatic_core(DataSet* results,Model* model, ParameterInputs* inputs);
     20void steadystate_core(DataSet* results,Model* model, ParameterInputs* inputs);
    2121
    2222void diagnostic_core_nonlinear(Vec* pug,Mat* pK_ff0,Mat* pK_fs0, DataSet* loads, FemModel* fem,ParameterInputs* inputs,int analysis_type,int sub_analysis_type);
Note: See TracChangeset for help on using the changeset viewer.