return recursiveGetContainer(name, rootContainer);
}
+int knownContainerWithName (const char *name)
+{
+ if (xbt_dict_get_or_null (allContainers, name)){
+ return 1;
+ }else{
+ return 0;
+ }
+}
+
container_t getContainerByName (const char *name)
{
return (container_t)xbt_dict_get (allContainers, name);
extern xbt_dict_t trivaEdgeTypes;
container_t newContainer (const char *name, e_container_types kind, container_t father);
container_t getContainer (const char *name);
+int knownContainerWithName (const char *name);
container_t getContainerByName (const char *name);
char *getContainerIdByName (const char *name);
char *getVariableTypeIdByName (const char *name, type_t father);
if (!value)
return;
//only trace link utilization if link is known by tracing mechanism
- if (!getContainerByName(resource))
+ if (!knownContainerWithName(resource))
return;
if (!value)
return;
{
if (!TRACE_is_active())
return;
+ //only trace host utilization if host is known by tracing mechanism
+ if (!knownContainerWithName(resource))
+ return;
if (!value)
return;