From c6df7ed2935137e5dfcba98533d01498dc0b8829 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 30 Apr 2024 12:09:17 -0600 Subject: [PATCH] fix in sweep for binary read --- src/programs/sweep/pestpp-swp.vcxproj.user | 4 ++-- src/programs/sweep/sweep.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/programs/sweep/pestpp-swp.vcxproj.user b/src/programs/sweep/pestpp-swp.vcxproj.user index 249a734e7..a0d40ce87 100644 --- a/src/programs/sweep/pestpp-swp.vcxproj.user +++ b/src/programs/sweep/pestpp-swp.vcxproj.user @@ -1,8 +1,8 @@  - 10par_xsec.pst - C:\Dev\pyemu\autotest\moouu\10par_xsec\template + pest_forgive.pst + C:\Dev\pestpp\benchmarks\ies_10par_xsec\master_sweep_bin WindowsLocalDebugger diff --git a/src/programs/sweep/sweep.cpp b/src/programs/sweep/sweep.cpp index 4740ed386..c96b93332 100644 --- a/src/programs/sweep/sweep.cpp +++ b/src/programs/sweep/sweep.cpp @@ -716,6 +716,8 @@ int main(int argc, char* argv[]) { cout << " --- dense binary file detected for par_csv" << endl; fout_rec << " --- dense binary file detected for par_csv" << endl; + par_stream.close(); + par_stream.open(par_csv_file, ifstream::binary); vector col_names; header_info = prepare_parameter_dense_binary(pest_scenario.get_ctl_parameters(),par_stream, pest_scenario.get_pestpp_options().get_sweep_forgive(),col_names);