Index: src/lte/test/lte-test-pathloss-model.cc |
=================================================================== |
--- a/src/lte/test/lte-test-pathloss-model.cc |
+++ b/src/lte/test/lte-test-pathloss-model.cc |
@@ -144,7 +144,7 @@ |
for ( int i = 0 ; i < numOfTests; i++ ) |
{ |
// double lossDb = txPowerDbm - snrEfficiencyMcs[i].snrDb - noisePowerDbm - receiverNoiseFigureDb; |
- double sinrLin = (txPowerLin/(pow(10, loss[i]/10))) / noiseLin; |
+ double sinrLin = static_cast<double> ((txPowerLin/(pow(10, loss[i]/10))) / noiseLin); |
// double sinrDb = txPowerDbm- noisePowerDbm - receiverNoiseFigureDb - loss[i]; |
double sinrDb = 10 * std::log10 (sinrLin); |
NS_LOG_INFO (" Ptx " << txPowerDbm << " Pn " << noisePowerDbm << " Fn " << receiverNoiseFigureDb << " Pl " << loss[i] << " dist " << dist[i]); |
@@ -159,7 +159,7 @@ |
std::ostringstream name; |
name << " snr= " << sinrDb << " dB, " |
<< " mcs= " << snrEfficiencyMcs[i].mcsIndex; |
- AddTestCase (new LtePathlossModelSystemTestCase (name.str (), sinrDb, dist[i], mcs), TestCase::QUICK); |
+ AddTestCase (new LtePathlossModelSystemTestCase (name.str (), sinrDb, dist[i], static_cast<uint16_t> (mcs)), TestCase::QUICK); |
} |
Biljana Bojović
2018/08/22 11:35:29
I prefer that we change the parameter of LtePathlo
|