Index: mttroot/mtt/lib/cr/hh/lin.hh ================================================================== --- mttroot/mtt/lib/cr/hh/lin.hh +++ mttroot/mtt/lib/cr/hh/lin.hh @@ -1,15 +1,17 @@ #ifndef LIN_HH #define LIN_HH #include +#include "components.hh" // translated from lin.cr // one 2-port, R/C/I; two 2-port, TF/GY inline double -lin(// parameters +lin(const component_t type, + // parameters const causality_t gain_causality, const double gain, // output const causality_t out_causality, const int out_port, @@ -42,11 +44,12 @@ } } // two 2-port, AE/AF inline double -lin(// parameters +lin(const component_t type, + // parameters const double gain, // output const causality_t out_causality, const int out_port, // input @@ -62,11 +65,12 @@ // three 2-port, FMR inline double -lin(// parameters +lin(const component_t type, + // parameters const causality_t gain_causality, const double gain, // output const causality_t out_causality, const int out_port, @@ -111,14 +115,14 @@ return input * gain * modulation; } else if((out_causality != gain_causality && out_port == 2) ||(out_causality == gain_causality && out_port == 1)) { return input / (gain * modulation); } else { - cerr << "* Error: __FILE__ does not cover this case" << endl; + std::cerr << "* Error: __FILE__ does not cover this case" << std::endl; exit(-1); } } // EMTF } // bi-causal } #endif // LIN_HH