Skip to content

Commit

Permalink
rename redirection class
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Aug 18, 2016
1 parent 025cae9 commit 47ce125
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/librarylink.cpp.in
Expand Up @@ -51,16 +51,16 @@ using namespace flexiblesusy;
typedef Two_scale algorithm_type;
typedef mint Handle_id;

class Cout_redirect {
class Redirect_output {
public:
explicit Cout_redirect(MLINK link_)
explicit Redirect_output(MLINK link_)
: link(link_)
, buffer()
, old_cout(std::cout.rdbuf(buffer.rdbuf()))
, old_cerr(std::cerr.rdbuf(buffer.rdbuf()))
{}

~Cout_redirect() {
~Redirect_output() {
std::cout.rdbuf(old_cout);
std::cerr.rdbuf(old_cerr);
flush();
Expand Down Expand Up @@ -673,7 +673,7 @@ DLLEXPORT int FS@ModelName@CalculateSpectrum(
Model_data data = find_data(hid);

{
Cout_redirect crd(link);
Redirect_output crd(link);
calculate_spectrum(data, link);
}

Expand Down Expand Up @@ -711,7 +711,7 @@ DLLEXPORT int FS@ModelName@CalculateObservables(
@ModelName@_observables observables;

{
Cout_redirect crd(link);
Redirect_output crd(link);
observables =
calculate_observables(data.model, data.qedqcd, data.physical_input);
}
Expand Down

0 comments on commit 47ce125

Please sign in to comment.