File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed
Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -20,22 +20,24 @@ int phypp_main(int argc, char* argv[]) {
2020 return 1 ;
2121 }
2222
23- // Write SEDs if asked
24- gridder.write_seds ();
25-
26- // Initizalize the fitter
27- fitter_t fitter (opts, input, gridder, output);
28-
29- // Build/read the grid and fit galaxies
30- if (!gridder.build_and_send (fitter)) {
31- return 1 ;
23+ if (opts.make_seds .empty ()) {
24+ // Initizalize the fitter
25+ fitter_t fitter (opts, input, gridder, output);
26+
27+ // Build/read the grid and fit galaxies
28+ if (!gridder.build_and_send (fitter)) {
29+ return 1 ;
30+ }
31+
32+ // Compile results
33+ fitter.find_best_fits ();
34+
35+ // Write output to disk
36+ write_output (opts, input, gridder, output);
37+ } else {
38+ // Write SEDs if asked
39+ gridder.write_seds ();
3240 }
3341
34- // Compile results
35- fitter.find_best_fits ();
36-
37- // Write output to disk
38- write_output (opts, input, gridder, output);
39-
4042 return 0 ;
4143}
You can’t perform that action at this time.
0 commit comments