Unexpected EOF while reading dictionary entry
Hello respected members of the OpenFOAM community,
I am trying to mesh an engine and for that I have modified the snappyHexMeshDict accordingly. But it shows the following error on being run:- Unexpected EOF while reading dictionary entry The snappyHexMeshDict is as follows:- Code:
/*--------------------------------*- C++ -*----------------------------------*\ I kindly request you to point out the mistakes I have made or changes that I should make. I would be highly grateful for your kind help. Best regards, Mohd Shaeq |
likely one of your c-style comments is not ending where you think it is (eg, a missing terminator).
Your first approach for debugging this is to use a good editor and set as c/c++ mode. Then try to see that all of your open braces/brackets have a corresponding closure. It should also highlight the comments in a different colour, which makes it easier to spot mistakes. If you want to block out a large chunk of input, it can sometimes be useful to stick those sections into separate files and then #include them (or not). Can also use #if 0 / #endif to disable a section of code (I think that works in v1912). Finally, before running snappy and discovering an error, you can also use foamDictionary -expand on the file to verify that the input is indeed what you expected to have. Don't panic, you'll find the problem soon enough! |
Thank you for your kind assistance, Mark. I had forgotten a closing bracket and by typing it I was able to solve the problem.
|
All times are GMT -4. The time now is 01:04. |