Hi.
The file you have attached is the "Mohit Tahiliani blackhole.tcl"
My test
$ ns235-blackh-Mohit-64 blackhole.tcl
num_nodes is set 7
INITIALIZE THE LIST xListHead
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
.... The files blackhole.nam 1.4MB,
blackhole.tr 1.2MB are created.
Conditions :
The simulation is to be run with an executable "ns" built with the Mohit Tahiliani blackholeaodv patch:
Build example ... e.g. Ubuntu 18.04 :
Simulation : $ ns-black-M blackhole.tcl