Changeset 11314


Ignore:
Timestamp:
02/03/12 10:55:53 (13 years ago)
Author:
seroussi
Message:

added error message if unphysical water friction value

File:
1 edited

Legend:

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

    r11313 r11314  
    42714271        if(converged){
    42724272                /*Convert enthalpy into temperature and water fraction*/
    4273                 for(i=0;i<numdof;i++) matpar->EnthalpyToThermal(&temperatures[i],&waterfraction[i],values[i],pressure[i]);
     4273                for(i=0;i<numdof;i++){
     4274                        matpar->EnthalpyToThermal(&temperatures[i],&waterfraction[i],values[i],pressure[i]);
     4275                        if(waterfraction[i]<0) _error_("Negative water fraction found in solution vector");
     4276                        if(waterfraction[i]>1) _error_("Water fraction >1 found in solution vector");
     4277                }
    42744278                       
    42754279                this->inputs->AddInput(new PentaP1Input(EnthalpyEnum,values));
Note: See TracChangeset for help on using the changeset viewer.