CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

SU2 doesn't run but throws "Error in TokenizeString()…"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2023, 05:53
Default SU2 doesn't run but throws "Error in TokenizeString()…"
  #1
New Member
 
Horst Philipp
Join Date: Nov 2023
Posts: 2
Rep Power: 0
Horscht is on a distinguished road
Dear community,


after tedious search I surprisingly found no answer although I suspect this happens a lot: The solver SU2 v8.0.0 "Harrier" would not run but throws the following message:


Error in TokenizeString(): line in the configuration file with no "=" sign.
Look for: 5 417 69 311 0
str.length() = 14
terminate called after throwing an instance of 'int'
Aborted (core dumped)



I executed the following: SU2_CFD mesh_NACA0012_inv.su2



The grid and config files are downloaded from SU2's Tutorial page, but I have attached the .cfg-file for Your convenience.



Additionally, can anyone give me advice on what the "Look for:…" line means, how to read it, what the solver wants to tell me?


Thanks in advance
Horscht



P.S.: changed to .txt because .cfg is not allowed…
Attached Files
File Type: txt inv_NACA0012_basic.txt (14.0 KB, 1 views)
Horscht is offline   Reply With Quote

Old   November 6, 2023, 06:35
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 585
Rep Power: 17
bigfootedrockmidget is on a distinguished road
Hi Horscht,

Don't execute SU2 using the .su2 file but use the .cfg file:

Code:
SU2_CFD config.cfg
The error is just saying that it expects to read lines of the form VARIABLE = VALUE
so a simple check to see if the configuration file is valid is to check the presence of the equal sign.
bigfootedrockmidget is offline   Reply With Quote

Old   November 6, 2023, 07:40
Default Hell no…
  #3
New Member
 
Horst Philipp
Join Date: Nov 2023
Posts: 2
Rep Power: 0
Horscht is on a distinguished road
bigfootedrockmidget, thank You very much!
I only installed SU2 ten days ago but this I already knew.
Believe it or not, I wasn't aware of choosing the wrong file.
After all, at least my post was detailed enough to expose the mistake…

I guess that's life


Have a nice day, bigfootedrockmidget!
Horscht is offline   Reply With Quote

Reply


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
How to run SU2 on cluster of computers (How to specify nodes ?) aero_amit SU2 29 February 24, 2020 13:44
SU2 Divergence Problem Gui_AP SU2 5 February 21, 2020 11:10
MPI error when trying to run su2 in parallel Gui_AP SU2 11 June 3, 2019 03:38
Needed SU2 input configuration file for longer run Samirs SU2 Installation 0 July 5, 2018 01:02
Working directory via command line Luiz CFX 4 March 6, 2011 20:02


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