Skip to content

Commit

Permalink
Fix issue with pvsamv1 running in cmod_hybrid
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Sep 2, 2023
1 parent 564c366 commit 7ca15af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ssc/cmod_hybrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class cm_hybrid : public compute_module

var_table& input = compute_module_inputs->table;
//ssc_data_set_number(static_cast<ssc_data_t>(&input), "is_hybrid", 1);
ssc_data_set_number(static_cast<ssc_data_t>(&input), "en_batt", 0); // should be done at UI level


//ssc_module_exec_set_print(1);
Expand Down Expand Up @@ -244,7 +245,7 @@ class cm_hybrid : public compute_module
for (size_t sph = 0; sph < maximumTimeStepsPerHour; sph++) {
size_t offset = sph / maximumTimeStepsPerHour / genTimestepsPerHour[g];
if (offset > genTimestepsPerHour[g]) offset = genTimestepsPerHour[g];
pGen[idx] += gen[h + offset] * cf_degradation[y];
pGen[idx] += gen[h + offset] * cf_degradation[y]; // Not valid for lifetime output - e.g. pvsamv1
idx++;
}
}
Expand Down

0 comments on commit 7ca15af

Please sign in to comment.