omnet+++ 5.0: Does the ini file have to be located somewhere within the NEDPATH?

14 views
Skip to first unread message

Julius Flohr

unread,
Jul 23, 2016, 2:21:14 PM7/23/16
to OMNeT++ Users
Hi,

the subject most likely says it all: I'm currently working on some automation tools for my simulations and encountered a strange behavior: when my ini file is not located next to my ned file ( or in my case: not in the NEDPATH), omnet++ says that it can not find my network file. I've instrumented NEDResourceCache::addFile() in nedxml/nedresourcecache.cc and verified that it gets loaded at this point (haven't debugged any further into the omnet). 

Another strange thing I discovered: The number of nedfiles loaded as reported by omnet does not match a 'find. | grep ".ned" | wc -l'. The shell command says that there are about 10 more than omnet sees. Is this intended behavior or should i file a bug report? Anything I missed?

Best,

Julius 

Rudolf Hornig

unread,
Jul 26, 2016, 4:26:48 AM7/26/16
to OMNeT++ Users
No there is no such requirement, but you may need to specify the network with its full package name in case they are in a different folder.

In theory all files that end with .ned and inside the ned path are parsed. You code counts all files that *contain* the string '.ned'. It means that it also counts whatever.ned.bak if you have such a file. You should try to figure out what files cause the difference.
Reply all
Reply to author
Forward
0 new messages