Skip to content
Snippets Groups Projects
Commit ca27ed49 authored by Cristian Galperti's avatar Cristian Galperti Committed by Cristian Galperti
Browse files

rtc_get.fun adapted to new dicts layout

parent 3191b5ca
No related branches found
No related tags found
No related merge requests found
......@@ -30,18 +30,20 @@ FUN PUBLIC rtc_get(_type, _name, optional _inode, optional _ithread, optional _d
_nodestr= ($SHOT>65700 || $SHOT==-1) ? "node" : "tcvrt";
_thread = _has_ithread ? ".thread"//iii(_ithread,2) : "";
_node = _has_inode ? _nodestr //iii(_inode ,2) : "";
_thread = _has_ithread ? ".thread"//iii(_ithread,2)//"." : "";
_node = _has_inode ? _nodestr //iii(_inode ,2)//"." : "";
_base = "\\rtc::top."//_node//_thread//":dict_"//_type//"s";
/*write(*,"[rtc_get] type="//_type//" base="//_base);*/
/*_base = "\\rtc::top."//_node//_thread//":dict_"//_type//"s";*/
_base = "\\rtc::top."//_node//_thread//"dicts:"//_type//"s";
write(*,"[rtc_get] type="//_type//" base="//_base);
_dict = build_path(_base);
}
_mem = size(_dict)>0 ? _dict[_name] : abort();
if (dim_of(_mem) != _name) { abort();}
if (dim_of(_mem) != _name) { abort();}
return(BUILD_PATH(data(_mem)));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment