Skip to content

Commit

Permalink
use the new helper function to demonstate the usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt committed Nov 25, 2014
1 parent 3803254 commit f2deac8
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions templates/run_cmd_line.cpp.in
Expand Up @@ -94,16 +94,10 @@ int main(int argc, char* argv[])
const bool error = problems.have_problem();

// SLHA output
@ModelName@_slha_io slha_io;
slha_io.set_spinfo(problems);
slha_io.set_sminputs(oneset);
slha_io.set_minpar(input);
slha_io.set_extpar(input);
if (!error) {
slha_io.set_spectrum(model);
slha_io.set_extra(model);
}
slha_io.write_to_stream(std::cout);
SLHAea::Coll slhaea;
@ModelName@_slha_io::fill_slhaea(slhaea, model, oneset);

std::cout << slhaea;

// // alternative output
// if (error) {
Expand Down

0 comments on commit f2deac8

Please sign in to comment.