Changeset 1821


Ignore:
Timestamp:
08/24/09 17:44:41 (16 years ago)
Author:
Eric.Larour
Message:

Brachning back from issm.controlstatic, by hand

File:
1 edited

Legend:

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

    r1805 r1821  
    1313#include "../issm.h"
    1414
    15 void thermalstatic_core(DataSet* results,FemModel* fems, ParameterInputs* inputs){
     15void thermalstatic_core(DataSet* results,Model* model, ParameterInputs* inputs){
    1616
    1717        extern int my_rank;
     
    5454
    5555        /*recover fem models: */
    56         fem_dh=fems+0;
    57         fem_dv=fems+1;
    58         fem_ds=fems+2;
    59         fem_dhu=fems+3;
    60         fem_sl=fems+4;
    61         fem_t=fems+5;
    62         fem_m=fems+6;
     56        fem_dh=model->DiagnosticHorizontal();
     57        fem_dv=model->DiagnosticVertical();
     58        fem_ds=model->DiagnosticStokes();
     59        fem_dhu=model->DiagnosticHutter();
     60        fem_sl=model->Slope();
     61        fem_t=model->Thermal();
     62        fem_m=model->Melting();
    6363
    6464        //first recover parameters common to all solutions
     
    6868        fem_ds->parameters->FindParam((void*)&isstokes,"isstokes");
    6969
    70        
    71                
    7270        //initialize:
    7371        converged=0;
     
    8684                }
    8785                results_thermal=new DataSet(ResultsEnum());
    88                 thermal_core(results_thermal,fems+5,inputs);
     86                thermal_core(results_thermal,model,inputs);
    8987       
    9088                //get t_g and m_g;
     
    103101                //now compute diagnostic velocity using the steady state temperature.
    104102                results_diagnostic=new DataSet(ResultsEnum());
    105                 diagnostic_core(results_diagnostic,fems, inputs);
     103                diagnostic_core(results_diagnostic,model, inputs);
    106104
    107105                //get p_g and u_g
Note: See TracChangeset for help on using the changeset viewer.