Skip to content

Commit

Permalink
first pass for passing state to AllTheBlahErrors - files A-M
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchute committed Oct 21, 2020
1 parent 2b8e928 commit a1aef23
Show file tree
Hide file tree
Showing 143 changed files with 5,244 additions and 5,241 deletions.
91 changes: 46 additions & 45 deletions src/EnergyPlus/AirLoopHVACDOAS.cc

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions src/EnergyPlus/AirflowNetwork/src/Elements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1119,15 +1119,15 @@ namespace AirflowNetwork {
k = 5 * (j - 1) + 1;
BX = Coeff(k);
BY = Coeff(k + 1) + BX * (Coeff(k + 2) + BX * (Coeff(k + 3) + BX * Coeff(k + 4))) - PRISE;
if (BY < 0.0) ShowFatalError(state, "Out of range, too low in an AirflowNetwork detailed Fan");
if (BY < 0.0) ShowFatalError(state, state, "Out of range, too low in an AirflowNetwork detailed Fan");

while (true) {
DX = Coeff(k + 5);
DY = Coeff(k + 1) + DX * (Coeff(k + 2) + DX * (Coeff(k + 3) + DX * Coeff(k + 5))) - PRISE;
// if (LIST >= 4) gio::write(Unit21, Format_901) << " fp0:" << j << BX << BY << DX << DY;
if (BY * DY <= 0.0) break;
++j;
if (j > NumCur) ShowFatalError(state, "Out of range, too high (FAN) in ADS simulation");
if (j > NumCur) ShowFatalError(state, state, "Out of range, too high (FAN) in ADS simulation");
k += 5;
BX = DX;
BY = DY;
Expand All @@ -1137,7 +1137,7 @@ namespace AirflowNetwork {
CY = 0.0;
Label40:;
++L;
if (L > 100) ShowFatalError(state, "Too many iterations (FAN) in AirflowNtework simulation");
if (L > 100) ShowFatalError(state, state, "Too many iterations (FAN) in AirflowNtework simulation");
CCY = CY;
CX = BX - BY * ((DX - BX) / (DY - BY));
CY = Coeff(k + 1) + CX * (Coeff(k + 2) + CX * (Coeff(k + 3) + CX * Coeff(k + 4))) - PRISE;
Expand Down Expand Up @@ -1247,15 +1247,15 @@ namespace AirflowNetwork {
k = 5 * (j - 1) + 1;
BX = Coeff(k);
BY = Coeff(k + 1) + BX * (Coeff(k + 2) + BX * (Coeff(k + 3) + BX * Coeff(k + 4))) - PRISE;
if (BY < 0.0) ShowFatalError(state, "Out of range, too low in an AirflowNetwork detailed Fan");
if (BY < 0.0) ShowFatalError(state, state, "Out of range, too low in an AirflowNetwork detailed Fan");

while (true) {
DX = Coeff(k + 5);
DY = Coeff(k + 1) + DX * (Coeff(k + 2) + DX * (Coeff(k + 3) + DX * Coeff(k + 5))) - PRISE;
// if (LIST >= 4) gio::write(Unit21, Format_901) << " fp0:" << j << BX << BY << DX << DY;
if (BY * DY <= 0.0) break;
++j;
if (j > NumCur) ShowFatalError(state, "Out of range, too high (FAN) in ADS simulation");
if (j > NumCur) ShowFatalError(state, state, "Out of range, too high (FAN) in ADS simulation");
k += 5;
BX = DX;
BY = DY;
Expand All @@ -1265,7 +1265,7 @@ namespace AirflowNetwork {
CY = 0.0;
Label40:;
++L;
if (L > 100) ShowFatalError(state, "Too many iterations (FAN) in AirflowNtework simulation");
if (L > 100) ShowFatalError(state, state, "Too many iterations (FAN) in AirflowNtework simulation");
CCY = CY;
CX = BX - BY * ((DX - BX) / (DY - BY));
CY = Coeff(k + 1) + CX * (Coeff(k + 2) + CX * (Coeff(k + 3) + CX * Coeff(k + 4))) - PRISE;
Expand Down Expand Up @@ -1723,7 +1723,7 @@ namespace AirflowNetwork {
HFact = HeightFac1 + (Fact - OpenFac1) / (OpenFac2 - OpenFac1) * (HeightFac2 - HeightFac1);
Cfact = DischCoeff1 + (Fact - OpenFac1) / (OpenFac2 - OpenFac1) * (DischCoeff2 - DischCoeff1);
} else {
ShowFatalError(state,
ShowFatalError(state, state,
"Open Factor is above the maximum input range for opening factors in AirflowNetwork:MultiZone:Component:DetailedOpening = " +
name);
}
Expand All @@ -1739,7 +1739,7 @@ namespace AirflowNetwork {
HFact = HeightFac2 + (Fact - OpenFac2) / (OpenFac3 - OpenFac2) * (HeightFac3 - HeightFac2);
Cfact = DischCoeff2 + (Fact - OpenFac2) / (OpenFac3 - OpenFac2) * (DischCoeff3 - DischCoeff2);
} else {
ShowFatalError(state,
ShowFatalError(state, state,
"Open Factor is above the maximum input range for opening factors in AirflowNetwork:MultiZone:Component:DetailedOpening = " +
name);
}
Expand All @@ -1759,7 +1759,7 @@ namespace AirflowNetwork {
HFact = HeightFac3 + (Fact - OpenFac3) / (OpenFac4 - OpenFac3) * (HeightFac4 - HeightFac3);
Cfact = DischCoeff3 + (Fact - OpenFac3) / (OpenFac4 - OpenFac3) * (DischCoeff4 - DischCoeff3);
} else {
ShowFatalError(state,
ShowFatalError(state, state,
"Open Factor is above the maximum input range for opening factors in AirflowNetwork:MultiZone:Component:DetailedOpening = " +
name);
}
Expand Down
Loading

5 comments on commit a1aef23

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

global_utility_routines (mitchute) - x86_64-MacOS-10.15-clang-11.0.0: Build Failed

Failures:\n

API Test Summary

  • Failed: 6
  • notrun: 3

integration Test Summary

  • Passed: 2
  • Failed: 717

regression Test Summary

  • Passed: 715
  • Failed: 2

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

global_utility_routines (mitchute) - Win64-Windows-10-VisualStudio-16: Build Failed

Failures:\n

API Test Summary

  • Failed: 1
  • notrun: 3

integration Test Summary

  • Passed: 2
  • Failed: 717

Build Badge Test Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

global_utility_routines (mitchute) - x86_64-Linux-Ubuntu-18.04-gcc-7.5: Build Failed

Failures:\n

API Test Summary

  • Failed: 6
  • notrun: 3

integration Test Summary

  • Passed: 2
  • Failed: 720

regression Test Summary

  • Passed: 735
  • Failed: 2

Build Badge Test Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

global_utility_routines (mitchute) - x86_64-Linux-Ubuntu-18.04-gcc-7.5-UnitTestsCoverage-Debug: Build Failed

Failures:\n

API Test Summary

  • Failed: 6
  • notrun: 3

Build Badge Test Badge Coverage Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

global_utility_routines (mitchute) - x86_64-Linux-Ubuntu-18.04-gcc-7.5-IntegrationCoverage-Debug: Build Failed

Failures:\n

integration Test Summary

  • Passed: 2
  • Failed: 720

Build Badge Test Badge Coverage Badge

Please sign in to comment.