当我尝试在ubuntu14.04中进行并行分发时
我收到此错误:无法将主机名附加到文件名results/General-0.elog
:没有HOST,HOSTNAME或COMPUTERNAME(Windows)环境变量。
[General]
network = Network
parallel-simulation = true
parsim-communications-class = "cMPICommunications"
parsim-synchronization-class = "cNullMessageProtocol"
**.scalar-recording = false
**.vector-recording = false
*.GCN.**.partition-id =0
*.lcn[*].partition-id =1
*.sn[*].partition-id =2
答案 0 :(得分:0)
您必须设置HOST
环境变量
输入您启动OMNeT++
的控制台:
export HOST=host01
或在IDE中转到Run
| Run Configurations
|你的配置| Environment
并添加一个HOST
值为host01
的新变量。