524 Simulation Technologies in Networking and Communications
//Set pathlossModel
IO_ReadStringInstance(ANY_NODEID, ANY_ADDRESS, nodeInput,
``PROPAGATION-PATHLOSS-MODEL”, channelIndex, TRUE, &wasFound, buf);
if (wasFound) {
if (strcmp(buf, “FREE-SPACE”) = = 0) {
propProfile->pathlossModel = FREE_SPACE;
}
...
else if (strcmp(buf,``UWEM’’) = =0) {
propProfile->pathlossModel = UWEM;
#ifdef ADDON_UWEM
UWEMInitialize(&(propChannel[channelIndex]),
channelIndex,nodeInput);
#else
ERROR_ReportMissingLibrary(buf, ``UWEM’’);
#endif //ADDON_UWEM
}//if
...
}//if
...
}//for
...
}
4. Add the following code block in the function “PROP_CalculatePathloss” in the source
le “qualnet/libraries/wireless/src/propagation. ...