Hi, i tried other way to perform similar thing and my issue got resolve , but there is another error which i am getting , although this error is runtime error not any compilation error, please take a look -
Error-cond="Sum((*rxPsd) * (*m_rxSignal)) == 0.0", +0.000000000s 4
jarvis@jarvis-HP-Pavilion-x360-Convertible-14-dh1xxx:~/Documents/ns-allinone-3.42/ns-3.42$ ./ns3 run scratch/scratchraw.cc
[0/2] Re-checking globbed directories...
[2/2] Linking CXX executable ../build/scratch/ns3.42-scratchraw-default
Location of ground random ue are :
0:27.6466:74.0119:0
1:96.2257:6.06602:0
2:92.9867:41.8288:0
3:85.6661:8.02182:0
4:4.49325:78.8029:0
UE 0 IP Address: 7.0.0.2
UE 1 IP Address: 7.0.0.3
UE 2 IP Address: 7.0.0.4
UE 3 IP Address: 7.0.0.5
UE 4 IP Address: 7.0.0.6
UE 1 is attached to gNB (backhaul) 5
UE 4 is attached to gNB (backhaul) 2
UE 7 is attached to gNB (fronthaul) 0
UE 8 is attached to gNB (fronthaul) 3
UE 9 is attached to gNB (fronthaul) 3
UE 10 is attached to gNB (fronthaul) 3
UE 11 is attached to gNB (fronthaul) 0
Position of UAV are :
UAV ID: 1, Position: 76.1682:57.1678:20
UAV ID: 2, Position: 88.7889:30.4719:20
UAV ID: 3, Position: 5:5:10
----------------------
AnimationInterface WARNING:Node:12 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:13 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:14 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:15 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:12 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:13 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:14 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:15 Does not have a mobility model. Use SetConstantPosition if it is stationary
----------------------
ERROR--
NS_ASSERT failed, cond="Sum((*rxPsd) * (*m_rxSignal)) == 0.0", +0.000000000s 4 file=/home/jarvis/Documents/ns-allinone-3.42/ns-3.42/src/lte/model/lte-interference.cc, line=96
NS_FATAL, terminating
terminate called without an active exception
Command 'build/scratch/ns3.42-scratchraw-default' died with <Signals.SIGABRT: 6>.
I have attached the script below.