Skip to content

Commit

Permalink
Merge branch 'adjust_pvwatts' into pysam_5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dguittet committed Mar 13, 2024
2 parents 3acb25c + 4ef3bf4 commit deb48ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ssc/cmod_pvwattsv7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ class cm_pvwattsv7 : public compute_module
p_tpoa[idx] = (ssc_number_t)tpoa; // W/m2
p_tmod[idx] = (ssc_number_t)tmod;
p_dc[idx] = (ssc_number_t)dc; // power, Watts
p_ac[idx] = (ssc_number_t)(ac * haf(hour_of_year)); // power, Watts
p_ac[idx] = (ssc_number_t)(ac * haf(wdprov->annualSimulation() ? hour_of_year : idx)); // power, Watts

// accumulate hourly energy (kWh) (was initialized to zero when allocated)
p_gen[idx_life] = (ssc_number_t)(p_ac[idx]* util::watt_to_kilowatt);
Expand Down
2 changes: 1 addition & 1 deletion ssc/cmod_pvwattsv8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@ class cm_pvwattsv8 : public compute_module
p_tmod[idx] = (ssc_number_t)tmod;
p_dc[idx] = (ssc_number_t)dc; // power, Watts
p_ac_pre_adjust[idx] = (ssc_number_t)ac; //power, Watts
p_ac[idx] = (ssc_number_t)(ac * haf(hour_of_year)); // power, Watts
p_ac[idx] = (ssc_number_t)(ac * haf(wdprov->annualSimulation() ? hour_of_year : idx)); // power, Watts

// accumulate hourly energy (kWh) (was initialized to zero when allocated)
p_gen[idx_life] = (ssc_number_t)(p_ac[idx] * util::watt_to_kilowatt);
Expand Down

0 comments on commit deb48ce

Please sign in to comment.