Rev | Line | |
---|
[11515] | 1 | Index: /proj/ice/larour/issm-uci-clean/trunk-jpl/src/c/modules/ModelProcessorx/Enthalpy/CreateConstraintsEnthalpy.cpp
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- /proj/ice/larour/issm-uci-clean/trunk-jpl/src/c/modules/ModelProcessorx/Enthalpy/CreateConstraintsEnthalpy.cpp (revision 11269)
|
---|
| 4 | +++ /proj/ice/larour/issm-uci-clean/trunk-jpl/src/c/modules/ModelProcessorx/Enthalpy/CreateConstraintsEnthalpy.cpp (revision 11270)
|
---|
| 5 | @@ -54,9 +54,9 @@
|
---|
| 6 | /*keep only this partition's nodes:*/
|
---|
| 7 | if((iomodel->my_vertices[i])){
|
---|
| 8 |
|
---|
| 9 | - if ((int)spctemperature[2*i]){
|
---|
| 10 | + if (!isnan(spctemperature[i])){
|
---|
| 11 |
|
---|
| 12 | - constraints->AddObject(new SpcStatic(iomodel->constraintcounter+count+1,iomodel->nodecounter+i+1,1,heatcapacity*(spctemperature[2*i+1]-referencetemperature),EnthalpyAnalysisEnum));
|
---|
| 13 | + constraints->AddObject(new SpcStatic(iomodel->constraintcounter+count+1,iomodel->nodecounter+i+1,1,heatcapacity*(spctemperature[i]-referencetemperature),EnthalpyAnalysisEnum));
|
---|
| 14 | count++;
|
---|
| 15 |
|
---|
| 16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.