Skip to content

Commit

Permalink
Fix initialization of xmin for PT tables; closes #777
Browse files Browse the repository at this point in the history
  • Loading branch information
ibell committed Aug 23, 2015
1 parent f167f55 commit f8af37f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Backends/Tabular/TabularBackends.h
Expand Up @@ -558,14 +558,15 @@ class LogPTTable : public SinglePhaseGriddedTableData
{
public:
LogPTTable(){
xkey = iT; ykey = iP; logy = true; logx = false;
xkey = iT; ykey = iP; logy = true; logx = false; xmin = _HUGE; ymin = _HUGE; xmax=_HUGE; ymax=_HUGE;
};
void set_limits(){
if (this->AS.get() == NULL){
throw ValueError("AS is not yet set");
}
CoolPropDbl Tmin = std::max(AS->Ttriple(), AS->Tmin());
AS->update(QT_INPUTS, 0, Tmin);
xmin = Tmin;
ymin = AS->p();

xmax = AS->Tmax()*1.499; ymax = AS->pmax();
Expand Down

0 comments on commit f8af37f

Please sign in to comment.