Skip to content

Commit

Permalink
updating adjustment_factors in particle csp cmod
Browse files Browse the repository at this point in the history
  • Loading branch information
qualand committed Nov 14, 2024
1 parent 3ca032e commit 88f985e
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 @@ -1320,8 +1320,8 @@ class cm_csp_tower_particle : public compute_module
}

//Load the solar field adjustment factors. Assume the same adjustment factors apply to each heliostat field
adjustment_factors sf_haf(this, "sf_adjust");
if (!sf_haf.setup((int)n_steps_full))
adjustment_factors sf_haf(this->get_var_table(), "sf_adjust");
if (!sf_haf.setup(n_steps_full))
throw exec_error("csp_tower_particle", "failed to setup sf adjustment factors: " + sf_haf.error());


Expand Down Expand Up @@ -2339,8 +2339,8 @@ class cm_csp_tower_particle : public compute_module
ssc_number_t *p_time_final_hr = as_array("time_hr", &count);

// 'adjustment_factors' class stores factors in hourly array, so need to index as such
adjustment_factors haf(this, "adjust");
if( !haf.setup((int)count) )
adjustment_factors haf(this->get_var_table(), "adjust");
if (!haf.setup(n_steps_full))
throw exec_error("csp_tower_particle", "failed to setup adjustment factors: " + haf.error());

ssc_number_t *p_gen = allocate("gen", count);
Expand Down

0 comments on commit 88f985e

Please sign in to comment.