Skip to content

Commit 7ae6cfc

Browse files
fix #187
1 parent f6e23cb commit 7ae6cfc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/merge_split.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Rcpp::List ms_plans(int N, List l, const uvec init, const uvec &counties, const
4141
double tol = std::max(target - lower, upper - target) / target;
4242

4343
if (verbosity >= 1) {
44-
Rcout.imbue(std::locale(""));
44+
Rcout.imbue(std::locale::classic());
4545
Rcout << "MARKOV CHAIN MONTE CARLO\n";
4646
Rcout << std::fixed << std::setprecision(0);
4747
Rcout << "Sampling " << N << " " << V << "-unit maps with " << n_distr

src/smc.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ List smc_plans(int N, List l, const uvec &counties, const uvec &pop,
4444
double tol = std::max(target - lower, upper - target) / target;
4545

4646
if (verbosity >= 1) {
47-
Rcout.imbue(std::locale(""));
47+
Rcout.imbue(std::locale::classic());
4848
Rcout << std::fixed << std::setprecision(0);
4949
Rcout << "SEQUENTIAL MONTE CARLO\n";
5050
Rcout << "Sampling " << N << " " << V << "-unit ";
@@ -690,4 +690,3 @@ void adapt_parameters(const Graph &g, int &k, int last_k, const vec &lp, double
690690
k = std::min(std::max(max_ok + 1, k) + 1 - (distr_ok(k) > 0.99) + (thresh == 1),
691691
max_V - 1);
692692
}
693-

0 commit comments

Comments
 (0)