Skip to content

Commit

Permalink
Changes for version 0.16.4
Browse files Browse the repository at this point in the history
CPower bug fix: calculation involving unknown voltage
  • Loading branch information
d-m-bailey committed Sep 25, 2018
1 parent aa26bca commit 76803a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT(CVC, [0.16.3], [[email protected]])
AC_INIT(CVC, [0.16.4], [[email protected]])
AC_CONFIG_SRCDIR(src)
AC_CONFIG_HEADERS([config.h])
AC_USE_SYSTEM_EXTENSIONS
Expand Down
4 changes: 2 additions & 2 deletions src/CPower.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1130,14 +1130,14 @@ voltage_t CPowerPtrMap::CalculateVoltage(string theEquation, netStatus_t theType
}
}
if ( theType == SIM_POWER ) {
if ( (*this)[*token_pit]->minVoltage == UNKNOWN_VOLTAGE ) {
if ( (*this)[*token_pit]->simVoltage == UNKNOWN_VOLTAGE ) {
myVoltageStack.push_back(UNKNOWN_TOKEN);
} else {
myVoltageStack.push_back(float((*this)[*token_pit]->simVoltage) / VOLTAGE_SCALE);
}
}
if ( theType == MAX_POWER ) {
if ( (*this)[*token_pit]->minVoltage == UNKNOWN_VOLTAGE ) {
if ( (*this)[*token_pit]->maxVoltage == UNKNOWN_VOLTAGE ) {
myVoltageStack.push_back(UNKNOWN_TOKEN);
} else {
myVoltageStack.push_back(float((*this)[*token_pit]->maxVoltage) / VOLTAGE_SCALE);
Expand Down
2 changes: 1 addition & 1 deletion src/Cvc.hh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#ifndef CVC_H_
#define CVC_H_

#define CVC_VERSION "0.16.3"
#define CVC_VERSION "0.16.4"

extern bool gDebug_cvc;
extern bool gInterrupted;
Expand Down

0 comments on commit 76803a8

Please sign in to comment.