CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

lookup of successful but it is not a dictionary, it is a dictionary!!

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2021, 08:06
Default lookup of successful but it is not a dictionary, it is a dictionary!!
  #1
New Member
 
ONESP-RO
Join Date: Feb 2021
Posts: 23
Rep Power: 2
NotOverUnderated is on a distinguished road
Hello,
I am trying to access the "data" object from ObjectRegistry in a coded function object. Here is what I have tried:

Code:
Info << mesh().lookupObject<dictionary>("data") << endl;
OpenFOAM 7 raises the following fatal error:


Code:
--> FOAM FATAL ERROR: 

    lookup of data from objectRegistry region0 successful
    but it is not a dictionary, it is a dictionary
If a dictionary is not a dictionary! what type should I use to access it?

Thank you
(Sorry for the typo in the title, I can't fix it)
NotOverUnderated is offline   Reply With Quote

Old   October 23, 2021, 12:37
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 388
Rep Power: 9
Tobermory will become famous soon enough
Maybe try:

Code:
Info << mesh().lookupObject<objectRegistry>("data") << endl;
Otherwise, try posting more of your code in case there's somethings else that is causing the problem.
Tobermory is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Long output in terminal. ssa_cfd OpenFOAM Running, Solving & CFD 1 March 18, 2019 06:25
ill defined primitiveEntry starting at keyword 'value' on line 197 ChangeDictionary Struggle_Achieve OpenFOAM Pre-Processing 2 December 20, 2017 04:58
DPMFoam - Serious Error --particle-laden flow in simple geometric config benz25 OpenFOAM Running, Solving & CFD 27 December 19, 2017 21:47
Convergence on anisotropic tetahedral meshes pbo OpenFOAM Running, Solving & CFD 12 December 14, 2010 12:59
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


All times are GMT -4. The time now is 01:26.