Skip to content

Commit

Permalink
z-W's
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlball committed Oct 21, 2020
1 parent a9c52ad commit 2b8e928
Show file tree
Hide file tree
Showing 26 changed files with 2,518 additions and 2,518 deletions.
1,330 changes: 665 additions & 665 deletions src/EnergyPlus/UnitarySystem.cc

Large diffs are not rendered by default.

966 changes: 483 additions & 483 deletions src/EnergyPlus/WaterThermalTanks.cc

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/EnergyPlus/WaterThermalTanks.hh
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ namespace WaterThermalTanks {

void SizeTankForDemandSide(EnergyPlusData &state);

void MinePlantStructForInfo();
void MinePlantStructForInfo(EnergyPlusData &state);

void SizeSupplySidePlantConnections(EnergyPlusData &state, Optional_int_const LoopNum = _);

Expand Down
188 changes: 94 additions & 94 deletions src/EnergyPlus/WaterToAirHeatPumpSimple.cc

Large diffs are not rendered by default.

72 changes: 36 additions & 36 deletions src/EnergyPlus/WaterUse.cc

Large diffs are not rendered by default.

654 changes: 327 additions & 327 deletions src/EnergyPlus/WeatherManager.cc

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/EnergyPlus/WeatherManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ namespace WeatherManager {
int &currentDayOfWeek // Current Day of Week
);

void ErrorInterpretWeatherDataLine(int WYear, int WMonth, int WDay, int WHour, int WMinute, std::string &SaveLine, std::string &Line);
void ErrorInterpretWeatherDataLine(EnergyPlusData &state, int WYear, int WMonth, int WDay, int WHour, int WMinute, std::string &SaveLine, std::string &Line);

void InterpretWeatherDataLine(EnergyPlusData &state, std::string &Line,
bool &ErrorFound, // True if an error is found, false otherwise
Expand Down Expand Up @@ -663,7 +663,7 @@ namespace WeatherManager {

void ResolveLocationInformation(EnergyPlusData &state, bool &ErrorsFound); // Set to true if no location evident

void CheckLocationValidity();
void CheckLocationValidity(EnergyPlusData &state);

void CheckWeatherFileValidity(EnergyPlusData &state);

Expand Down
98 changes: 49 additions & 49 deletions src/EnergyPlus/WindowAC.cc

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions src/EnergyPlus/WindowComplexManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ namespace WindowComplexManager {
}
}
if (state.dataWindowComplexManager->WindowStateList(NumStates, state.dataWindowComplexManager->NumComplexWind).IncBasisIndx <= 0) {
ShowFatalError("Complex Window Init: Window Basis not in state.dataWindowComplexManager->BasisList.");
ShowFatalError(state, "Complex Window Init: Window Basis not in state.dataWindowComplexManager->BasisList.");
}
}
// Should now have a WindowList with dataWindowComplexManager. NumComplexWind entries containing all the complex fenestrations
Expand Down Expand Up @@ -1038,7 +1038,7 @@ namespace WindowComplexManager {
for (I = 2; I <= NThetas; ++I) {
Thetas(I) = state.dataConstruction->Construct(IConst).BSDFInput.BasisMat(1, I) * DataGlobalConstants::DegToRadians();
NPhis(I) = std::floor(state.dataConstruction->Construct(IConst).BSDFInput.BasisMat(2, I) + 0.001);
if (NPhis(I) <= 0) ShowFatalError("WindowComplexManager: incorrect input, no. phis must be positive.");
if (NPhis(I) <= 0) ShowFatalError(state, "WindowComplexManager: incorrect input, no. phis must be positive.");
NumElem += NPhis(I);
}
MaxNPhis = maxval(NPhis({1, NThetas}));
Expand All @@ -1047,7 +1047,7 @@ namespace WindowComplexManager {
Basis.Phis = 0.0; // Initialize so undefined elements will contain zero
Basis.BasisIndex = 0; // Initialize so undefined elements will contain zero
if (NumElem != state.dataConstruction->Construct(IConst).BSDFInput.NBasis) { // Constructed Basis must match property matrices
ShowFatalError("WindowComplexManager: Constructed basis length does not match property matrices.");
ShowFatalError(state, "WindowComplexManager: Constructed basis length does not match property matrices.");
}
Basis.Thetas = Thetas;
Basis.NPhis = NPhis;
Expand Down Expand Up @@ -1090,7 +1090,7 @@ namespace WindowComplexManager {
Phi = (J - 1) * DPhi;
Basis.Phis(I, J) = Phi; // Note: this ordering of I & J are necessary to allow Phis(Theta) to
// be searched as a one-dimensional table
FillBasisElement(Theta,
FillBasisElement(state, Theta,
Phi,
ElemNo,
Basis.Grid(ElemNo),
Expand Down Expand Up @@ -1118,7 +1118,7 @@ namespace WindowComplexManager {
Basis.Phis = 0.0; // Initialize so undefined elements will contain zero
Basis.BasisIndex = 0; // Initialize so undefined elements will contain zero
if (NumElem != state.dataConstruction->Construct(IConst).BSDFInput.NBasis) { // Constructed Basis must match property matrices
ShowFatalError("WindowComplexManager: Constructed basis length does not match property matrices.");
ShowFatalError(state, "WindowComplexManager: Constructed basis length does not match property matrices.");
}
Basis.Thetas = Thetas;
Basis.NPhis = NPhis;
Expand Down Expand Up @@ -1159,7 +1159,7 @@ namespace WindowComplexManager {
Phi = 0.0;
Basis.Phis(I, 1) = Phi; // Note: this ordering of I & J are necessary to allow Phis(Theta) to
// be searched as a one-dimensional table
FillBasisElement(Theta,
FillBasisElement(state, Theta,
Phi,
ElemNo,
Basis.Grid(ElemNo),
Expand All @@ -1172,13 +1172,13 @@ namespace WindowComplexManager {
}
} // BST
} else { // BTW
ShowFatalError("WindowComplexManager: Non-Window6 basis type not yet implemented.");
ShowFatalError(state, "WindowComplexManager: Non-Window6 basis type not yet implemented.");
} // BTW
Thetas.deallocate();
NPhis.deallocate();
}

void FillBasisElement(Real64 const Theta, // Central polar angle of element
void FillBasisElement(EnergyPlusData &state, Real64 const Theta, // Central polar angle of element
Real64 const Phi, // Central azimuthal angle of element
int const Elem, // Index number of element in basis
BasisElemDescr &BasisElem,
Expand Down Expand Up @@ -1223,7 +1223,7 @@ namespace WindowComplexManager {
} else {
// Non-WINDOW6 Type Basis
// Currently not implemented
ShowFatalError("WindowComplexManager: Custom basis type not yet implemented.");
ShowFatalError(state, "WindowComplexManager: Custom basis type not yet implemented.");
}
}

Expand Down Expand Up @@ -1600,7 +1600,7 @@ namespace WindowComplexManager {
}
} // back surf loop
if (TotHits == 0) { // this should not happen--means a ray has gotten lost
// CALL ShowWarningError('BSDF--Zone surfaces do not completely enclose zone--transmitted ray lost')
// CALL ShowWarningError(state, 'BSDF--Zone surfaces do not completely enclose zone--transmitted ray lost')
} else {
KBkSurf = BSHit.KBkSurf;
JSurf = BSHit.HitSurf;
Expand Down Expand Up @@ -1675,7 +1675,7 @@ namespace WindowComplexManager {
State.WinDiffTrans = Sum1 / Sum2;
} else {
State.WinDiffTrans = 0.0;
ShowWarningError("BSDF--Inc basis has zero projected solid angle");
ShowWarningError(state, "BSDF--Inc basis has zero projected solid angle");
}

// Calculate the hemispherical-hemispherical transmittance for visible spetrum
Expand All @@ -1692,7 +1692,7 @@ namespace WindowComplexManager {
State.WinDiffVisTrans = Sum1 / Sum2;
} else {
State.WinDiffVisTrans = 0.0;
ShowWarningError("BSDF--Inc basis has zero projected solid angle");
ShowWarningError(state, "BSDF--Inc basis has zero projected solid angle");
}

// Set the nominal diffuse transmittance so the surface isn't mistaken as opaque
Expand Down Expand Up @@ -2817,7 +2817,7 @@ namespace WindowComplexManager {
// END DO ! ZoneEquipConfigNum
// check whether this zone is a controlled zone or not
if (!Zone(ZoneNum).IsControlled) {
ShowFatalError("Zones must be controlled for Ceiling-Diffuser Convection model. No system serves zone " + Zone(ZoneNum).Name);
ShowFatalError(state, "Zones must be controlled for Ceiling-Diffuser Convection model. No system serves zone " + Zone(ZoneNum).Name);
return;
}
// determine supply air conditions
Expand Down Expand Up @@ -2861,7 +2861,7 @@ namespace WindowComplexManager {
ZoneEquipConfigNum = ZoneNum;
// check whether this zone is a controlled zone or not
if (!Zone(ZoneNum).IsControlled) {
ShowFatalError("Zones must be controlled for Ceiling-Diffuser Convection model. No system serves zone " +
ShowFatalError(state, "Zones must be controlled for Ceiling-Diffuser Convection model. No system serves zone " +
Zone(ZoneNum).Name);
return;
}
Expand Down Expand Up @@ -3077,12 +3077,12 @@ namespace WindowComplexManager {
} // IF feedData THEN
}
} else {
ShowContinueError("Illegal layer type in Construction:ComplexFenestrationState.");
ShowContinueError("Allowed object are:");
ShowContinueError(" - WindowMaterial:Glazing");
ShowContinueError(" - WindowMaterial:ComplexShade");
ShowContinueError(" - WindowMaterial:Gap");
ShowFatalError("halting because of error in layer definition for Construction:ComplexFenestrationState");
ShowContinueError(state, "Illegal layer type in Construction:ComplexFenestrationState.");
ShowContinueError(state, "Allowed object are:");
ShowContinueError(state, " - WindowMaterial:Glazing");
ShowContinueError(state, " - WindowMaterial:ComplexShade");
ShowContinueError(state, " - WindowMaterial:Gap");
ShowFatalError(state, "halting because of error in layer definition for Construction:ComplexFenestrationState");
}

} // End of loop over glass, gap and blind/shade layers in a window construction
Expand Down Expand Up @@ -3302,14 +3302,14 @@ namespace WindowComplexManager {
// process results from TARCOG
if ((nperr > 0) && (nperr < 1000)) { // process error signal from tarcog

ShowSevereError("Window tarcog returned an error");
ShowSevereError(state, "Window tarcog returned an error");
tarcogErrorMessage = "message = \"" + tarcogErrorMessage + "\"";
ShowContinueErrorTimeStamp(tarcogErrorMessage);
ShowContinueErrorTimeStamp(state, tarcogErrorMessage);
if (CalcCondition == noCondition) {
ShowContinueError("surface name = " + Surface(SurfNum).Name);
ShowContinueError(state, "surface name = " + Surface(SurfNum).Name);
}
ShowContinueError("construction name = " + state.dataConstruction->Construct(ConstrNum).Name);
ShowFatalError("halting because of error in tarcog");
ShowContinueError(state, "construction name = " + state.dataConstruction->Construct(ConstrNum).Name);
ShowFatalError(state, "halting because of error in tarcog");
} else if (CalcCondition == winterCondition) {
NominalU(ConstrNum) = ufactor;
} else if (CalcCondition == summerCondition) {
Expand All @@ -3329,7 +3329,7 @@ namespace WindowComplexManager {
// tempReal = Sum1/Sum2
// else
// tempReal = 0.0d0
// CALL ShowWarningError('BSDF--Inc basis has zero projected solid angle')
// CALL ShowWarningError(state, 'BSDF--Inc basis has zero projected solid angle')
// endif

state.dataConstruction->Construct(ConstrNum).SummerSHGC = shgc;
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyPlus/WindowComplexManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ namespace WindowComplexManager {
int const IConst, // Index for accessing Construct array
BasisStruct &Basis);

void FillBasisElement(Real64 const Theta, // Central polar angle of element
void FillBasisElement(EnergyPlusData &state, Real64 const Theta, // Central polar angle of element
Real64 const Phi, // Central azimuthal angle of element
int const Elem, // Index number of element in basis
BasisElemDescr &BasisElem,
Expand Down
Loading

1 comment on commit 2b8e928

@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 (brianlball) - 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

Please sign in to comment.