Skip to content

Commit e763bf7

Browse files
committed
Fixed BEST_FROM_SIM=1 chi2 and best-fit SEDs.
1 parent a41ebd0 commit e763bf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fast++-fitter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ void fitter_t::fit_galaxies(const model_t& model, uint_t i0, uint_t i1) {
344344
wsp.sfr.safe[i] = scale*model.sfr;
345345
}
346346

347-
if (!opts.best_from_sim && opts.parallel == parallel_choice::none) {
347+
if (opts.parallel == parallel_choice::none) {
348348
// Compare to best
349349
// WARNING: read/modify shared resource
350350
if (output.best_chi2.safe[is] > wsp.chi2.safe[i]) {
@@ -422,7 +422,7 @@ void fitter_t::fit_galaxies(const model_t& model, uint_t i0, uint_t i1) {
422422
}
423423
}
424424

425-
if (!opts.best_from_sim && opts.parallel != parallel_choice::none) {
425+
if (opts.parallel != parallel_choice::none) {
426426
// Compare to best
427427
// WARNING: read/modify shared resource
428428
std::lock_guard<std::mutex> lock(output.fit_result_mutex);

0 commit comments

Comments
 (0)