src/lte/test/lte-test-link-adaptation.cc
changeset 9063 32755d0516f4
parent 9047 284d30c8dd42
child 9105 760da66d6f5c
--- a/src/lte/test/lte-test-link-adaptation.cc	Fri Aug 31 12:24:28 2012 +0200
+++ b/src/lte/test/lte-test-link-adaptation.cc	Sat Sep 01 20:57:21 2012 +0200
@@ -113,7 +113,7 @@
 
   double txPowerDbm = 30; // default eNB TX power over whole bandwdith
   double ktDbm = -174;    // reference LTE noise PSD
-  double noisePowerDbm = ktDbm + 10 * log10 (25 * 180000); // corresponds to kT*bandwidth in linear units
+  double noisePowerDbm = ktDbm + 10 * std::log10 (25 * 180000); // corresponds to kT*bandwidth in linear units
   double receiverNoiseFigureDb = 9.0; // default UE noise figure
 
   for ( int i = 0 ; i < numOfTests; i++ )
@@ -209,7 +209,7 @@
   Simulator::Stop (Seconds (0.007));
   Simulator::Run ();
 
-  double calculatedSinrDb = 10.0 * log10 (testSinr->GetSinr ()->operator[] (0));
+  double calculatedSinrDb = 10.0 * std::log10 (testSinr->GetSinr ()->operator[] (0));
   NS_TEST_ASSERT_MSG_EQ_TOL (calculatedSinrDb, m_snrDb, 0.0000001, "Wrong SINR !");
   Simulator::Destroy ();
 }