Skip to content

Commit 8a6edd3

Browse files
authored
Merge pull request #76 from jwhite-usgs/hotfix_base_rei_tags
Hotfix base rei tags
2 parents 92f50e3 + 05cda99 commit 8a6edd3

12 files changed

Lines changed: 153 additions & 28 deletions

File tree

documentation/pestpp4.3.17.docx

-982 KB
Binary file not shown.

documentation/pestpp4.3.18.docx

973 KB
Binary file not shown.

scripts/build_pestpp_win.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
set first_path=%cd%
44
cd "%~dp0\.."
55

6+
rem fast but without fortran
67
rmdir /Q /S bin
78
rmdir /Q /S build
89
mkdir build
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@echo off
2+
3+
set first_path=%cd%
4+
cd "%~dp0\.."
5+
6+
rem fast but without fortran
7+
rmdir /Q /S bin
8+
rmdir /Q /S build
9+
mkdir build
10+
call "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\bin\compilervars.bat" intel64
11+
cd build
12+
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=icl ..
13+
ninja
14+
cpack -G ZIP
15+
copy /y *.zip ..\
16+
17+
cd ..
18+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
19+
rmdir /Q /S build
20+
mkdir build
21+
cd build
22+
cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
23+
ninja
24+
cpack -G ZIP
25+
copy /y *.zip ..\
26+
27+
cd %first_path%
28+
pause

src/libs/common/config_os.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define CONFIG_OS_H_
33

44

5-
#define PESTPP_VERSION "4.3.17";
5+
#define PESTPP_VERSION "4.3.18";
66

77
#if defined(_WIN32) || defined(_WIN64)
88
#define OS_WIN

src/libs/opt/sequential_lp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ void sequentialLP::iter_presolve()
972972
missing.push_back(name);
973973
if (missing.size() > 0)
974974
throw_sequentialLP_error("the following decision vars were not found in the jacobian " + basejac_filename + " : ", missing);
975-
if (constraints.get_use_fosm())
975+
if ((constraints.get_use_chance()) && (constraints.get_use_fosm()))
976976
{
977977
for (auto& name : constraints.get_adj_par_names())
978978
//if (find(start, end, name) == end)

src/libs/pestpp_common/EnsembleMethodUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ void save_base_real_par_rei(Pest& pest_scenario, ParameterEnsemble& pe, Observat
969969
if (iter >= 0)
970970
ss << iter << ".";
971971
ss << "base.rei";
972-
output_file_writer.write_rei(file_manager.open_ofile_ext(ss.str()), 0,
972+
output_file_writer.write_rei(file_manager.open_ofile_ext(ss.str()), iter,
973973
pest_scenario.get_ctl_observations(), obs, obj_func, pars);
974974
}
975975
}

src/libs/pestpp_common/Jacobian.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ bool Jacobian::build_runs(Parameters &ctl_pars, Observations &ctl_obs, vector<st
276276
{
277277
debug_msg("fail");
278278
//cout << endl << " warning: failed to compute parameter deriviative for " << ipar_name << endl;
279-
file_manager.rec_ofstream() << " warning: failed to compute parameter deriviative for " << ipar_name << endl;
279+
file_manager.rec_ofstream() << " warning: failed to compute parameter derivative for " << ipar_name << endl;
280280
failed_parameter_names.insert(ipar_name);
281281
}
282282
}

src/libs/pestpp_common/Jacobian_1to1.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ bool Jacobian_1to1::build_runs(Parameters &ctl_pars, Observations &ctl_obs, vect
111111
}
112112
else
113113
{
114-
cout << endl << " warning: failed to compute parameter deriviative for " << i_name << endl;
115-
file_manager.rec_ofstream() << " warning: failed to compute parameter deriviative for " << i_name << endl;
114+
cout << endl << " warning: failed to compute parameter derivative for " << i_name << endl;
115+
file_manager.rec_ofstream() << " warning: failed to compute parameter derivative for " << i_name << endl;
116116
failed_parameter_names.insert(i_name);
117117
failed_to_increment_parmaeters.insert(i_name, derivative_par_value);
118118
}
@@ -192,8 +192,8 @@ bool Jacobian_1to1::build_runs(ModelRun &init_model_run, vector<string> numeric_
192192
}
193193
else
194194
{
195-
cout << endl << " warning: failed to compute parameter deriviative for " << i_name << endl;
196-
file_manager.rec_ofstream() << " warning: failed to compute parameter deriviative for " << i_name << endl;
195+
cout << endl << " warning: failed to compute parameter derivative for " << i_name << endl;
196+
file_manager.rec_ofstream() << " warning: failed to compute parameter derivative for " << i_name << endl;
197197
failed_parameter_names.insert(i_name);
198198
failed_to_increment_parmaeters.insert(i_name, derivative_par_value);
199199
}

0 commit comments

Comments
 (0)