Changeset 11270


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

spctemperature is now a column (for enthalpy solution), need to be improved to use IoModelCreateConstraints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/Enthalpy/CreateConstraintsEnthalpy.cpp

    r10522 r11270  
    5555                if((iomodel->my_vertices[i])){
    5656
    57                         if ((int)spctemperature[2*i]){
     57                        if (!isnan(spctemperature[i])){
    5858
    59                                 constraints->AddObject(new SpcStatic(iomodel->constraintcounter+count+1,iomodel->nodecounter+i+1,1,heatcapacity*(spctemperature[2*i+1]-referencetemperature),EnthalpyAnalysisEnum));
     59                                constraints->AddObject(new SpcStatic(iomodel->constraintcounter+count+1,iomodel->nodecounter+i+1,1,heatcapacity*(spctemperature[i]-referencetemperature),EnthalpyAnalysisEnum));
    6060                                count++;
    6161
Note: See TracChangeset for help on using the changeset viewer.