Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #668 from joakim-hove/ERT-781-CSV
Browse files Browse the repository at this point in the history
Ert 781 csv
  • Loading branch information
joakim-hove committed Dec 16, 2014
2 parents ef6548e + 6a40c61 commit 598efaf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion devel/libecl/include/ert/ecl/ecl_sum_vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ typedef struct ecl_sum_vector_struct ecl_sum_vector_type;
bool ecl_sum_vector_add_key( ecl_sum_vector_type * keylist, const char * key);
void ecl_sum_vector_add_keys( ecl_sum_vector_type * keylist, const char * pattern);

bool ecl_sum_vector_iget(const ecl_sum_vector_type * ecl_sum_vector, int index);
bool ecl_sum_vector_iget_is_rate(const ecl_sum_vector_type * ecl_sum_vector, int index);
int ecl_sum_vector_iget_param_index(const ecl_sum_vector_type * ecl_sum_vector, int index);
int ecl_sum_vector_get_size(const ecl_sum_vector_type * ecl_sum_vector);

Expand Down
5 changes: 3 additions & 2 deletions devel/libecl/src/ecl_sum_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -1125,10 +1125,11 @@ void ecl_sum_data_write_csv_file(const ecl_sum_data_type * data , time_t sim_tim
double weight1 , weight2;
int time_index1 , time_index2;
double value = 0.0;
ecl_sum_data_init_interp_from_sim_time( data , sim_time , &time_index1 , &time_index2 , &weight1 , &weight2);
int i;

ecl_sum_data_init_interp_from_sim_time( data , sim_time , &time_index1 , &time_index2 , &weight1 , &weight2);
for(i = 0; i< num_keywords; i++ ){
bool is_rate = ecl_sum_vector_iget(keylist, i);
bool is_rate = ecl_sum_vector_iget_is_rate(keylist, i);
int params_index = ecl_sum_vector_iget_param_index(keylist , i);
if(is_rate){
int time_index;
Expand Down
2 changes: 1 addition & 1 deletion devel/libecl/src/ecl_sum_vector.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ int ecl_sum_vector_get_size(const ecl_sum_vector_type * ecl_sum_vector){
return int_vector_size(ecl_sum_vector->node_index_list);
}

bool ecl_sum_vector_iget(const ecl_sum_vector_type * ecl_sum_vector, int index){
bool ecl_sum_vector_iget_is_rate(const ecl_sum_vector_type * ecl_sum_vector, int index){
return bool_vector_iget(ecl_sum_vector->is_rate_list, index);
}

Expand Down

0 comments on commit 598efaf

Please sign in to comment.