Skip to content

Commit

Permalink
updating receiver converge error message
Browse files Browse the repository at this point in the history
  • Loading branch information
qualand committed Nov 6, 2024
1 parent f2cad97 commit 64d9bf0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ssc/cmod_csp_tower_particle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -879,15 +879,15 @@ class cm_csp_tower_particle : public compute_module
if (as_integer("field_model_type") == 0) { // Heliostat field optimization to follow
design_heat_loss.at(i) = 0.0;
std::string msg;
msg = util::format("Receiver (%d) failed to converge at design condition. Setting receiver heat loss to 0.0 for SolarPILOT. \n"
"Resulting heliostat field could be undersized.", i);
msg = util::format("Receiver %d failed to converge at design condition. Setting receiver heat loss to 0.0 for SolarPILOT. \n"
"Resulting heliostat field could be undersized.", i+1);
log(msg, SSC_WARNING);
}
else { // Throw error if not running optimization
if (sim_type == 1) {
std::string msg;
msg = util::format("Receiver (%d) failed to converge at design condition. "
"Aperture size is most likely too large or receiver parameters are unrealistic.", i);
msg = util::format("Receiver %d failed to converge at design condition. "
"Aperture size is most likely too large or receiver parameters are unrealistic.", i+1);
throw exec_error("csp_tower_particle", msg);
}
else {
Expand Down

0 comments on commit 64d9bf0

Please sign in to comment.