Skip to content

Commit cce018f

Browse files
committed
removed unnecessary N_Vector copy
1 parent 464ab2d commit cce018f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/cuqdyn-c/src/cuqdyn.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,9 @@ CuqdynResult *cuqdyn_algo(const char *data_file, const char *sacess_conf_file, c
148148
SUNMatrix yexp = copy_matrix_remove_rows(observed_data, indices_to_remove);
149149

150150
N_Vector tmp_initial_condition = copy_vector_remove_indices(initial_condition, create_array((long[]) {}, 0));
151-
N_Vector tmp_initial_params = copy_vector_remove_indices(initial_params, create_array((long[]) {}, 0));
152151

153152
N_Vector predicted_params =
154-
execute_ess_solver(sacess_conf_file, output_file, texp, yexp, tmp_initial_condition, tmp_initial_params);
153+
execute_ess_solver(sacess_conf_file, output_file, texp, yexp, tmp_initial_condition, initial_params);
155154

156155
// Saving the ode solution data obtained with the predicted params
157156
SUNMatrix ode_solution = solve_ode(predicted_params, initial_condition, t0, times);

0 commit comments

Comments
 (0)