Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Removed useless printf when re-loading data
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Brambilla authored and Andrea Brambilla committed Apr 17, 2019
1 parent 023abf5 commit 2de691d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions lib/enkf/enkf_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2284,7 +2284,6 @@ int enkf_main_load_from_forward_model(enkf_main_type * enkf_main, int iter , boo


int enkf_main_load_from_forward_model_with_fs(enkf_main_type * enkf_main, int iter , bool_vector_type * iactive, stringlist_type ** realizations_msg_list, enkf_fs_type * fs) {
printf("Loading from forward model\n");
model_config_type * model_config = enkf_main_get_model_config(enkf_main);
ert_run_context_type * run_context = ert_run_context_alloc_ENSEMBLE_EXPERIMENT( fs,
iactive,
Expand Down Expand Up @@ -2317,7 +2316,6 @@ int enkf_main_load_from_run_context(
ert_run_context_type * run_context,
stringlist_type ** realizations_msg_list,
enkf_fs_type * fs) {
printf("Loading from run context\n");
auto const ens_size = enkf_main_get_ensemble_size( enkf_main );
auto const * iactive = ert_run_context_get_iactive(run_context);

Expand All @@ -2326,13 +2324,11 @@ int enkf_main_load_from_run_context(
thread_pool_type * tp = thread_pool_alloc( std::thread::hardware_concurrency() , true );

for (int iens = 0; iens < ens_size; ++iens) {
printf("\tloading %d (realization %d/%d) ", iens, (1+iens), ens_size);
result[iens] = 0;
arg_pack_type * arg_pack = arg_pack_alloc();
arg_list[iens] = arg_pack;

if (bool_vector_iget(iactive, iens)) {
printf("... ");
enkf_state_type * enkf_state = enkf_main_iget_state( enkf_main , iens );
arg_pack_append_ptr( arg_pack , enkf_state); /* 0: enkf_state*/
arg_pack_append_ptr( arg_pack , ert_run_context_iget_arg( run_context , iens )); /* 1: run_arg */
Expand All @@ -2341,12 +2337,10 @@ int enkf_main_load_from_run_context(
arg_pack_append_ptr(arg_pack, &result[iens]); /* 4: Result */
thread_pool_add_job( tp , enkf_state_load_from_forward_model_mt , arg_pack);
}
printf("done\n");
}

thread_pool_join( tp );
thread_pool_free( tp );
printf("\n");

int loaded = 0;
for (int iens = 0; iens < ens_size; ++iens) {
Expand Down
4 changes: 0 additions & 4 deletions lib/enkf/enkf_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -718,10 +718,6 @@ void * enkf_state_load_from_forward_model_mt( void * arg ) {
*result -= REPORT_STEP_INCOMPATIBLE;
}

if (manual_load) {
printf(".");
fflush(stdout);
}
return NULL;
}

Expand Down

0 comments on commit 2de691d

Please sign in to comment.