Changeset 11273


Ignore:
Timestamp:
01/31/12 11:44:29 (13 years ago)
Author:
seroussi
Message:

fixed major problem for transient enthalpy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/objects/Elements/Penta.cpp

    r11272 r11273  
    36723672        double rho_ice,heatcapacity;
    36733673        double thermalconductivity;
    3674         double viscosity,temperature;
     3674        double viscosity,enthalpy;
    36753675        double tau_parameter,diameter;
    36763676        double u,v,w;
     
    36963696        Input* vy_input=inputs->GetInput(VyEnum); _assert_(vy_input);
    36973697        Input* vz_input=inputs->GetInput(VzEnum); _assert_(vz_input);
    3698         Input* temperature_input=NULL;
    3699         if (dt) temperature_input=inputs->GetInput(TemperatureEnum); _assert_(inputs);
     3698        Input* enthalpy_input=NULL;
     3699        if (dt) enthalpy_input=inputs->GetInput(EnthalpyEnum); _assert_(inputs);
    37003700        if (stabilization==2) diameter=MinEdgeLength(xyz_list);
    37013701
     
    37203720                /* Build transient now */
    37213721                if(dt){
    3722                         temperature_input->GetInputValue(&temperature, gauss);
    3723                         scalar_transient=temperature*Jdet*gauss->weight;
     3722                        enthalpy_input->GetInputValue(&enthalpy, gauss);
     3723                        scalar_transient=enthalpy*Jdet*gauss->weight;
    37243724                        for(i=0;i<NUMVERTICES;i++)  pe->values[i]+=scalar_transient*L[i];
    37253725                }
Note: See TracChangeset for help on using the changeset viewer.