Hello,developers!
I encountered an error with Expecting END IF statement at (1) while building the solver,I don’t know how to solve it, can you help me? Here are my program files.Thank you very much!
This erorr is not in the solver as distrubuted but in a UDF that you wrote. Please be clear when seeking help that the problem is in your code. I have created a new “udf” tag for all questions related to user-written code.
It helps to indent code properly - using some sort of IDE that is aware of Fortran code (I use Emacs) - the code you uploaded is a bit messy but when you have proper indentation it helps to show the structure of the IF/ENDIF blocks.
I spoke too fast, the IF(nRR >= R4) does not have a THEN and it has a continuation character &, so this is a one-line IF statement that does not require an ENDIF. (I do not think this is good style, instead of the & I’d use THEN/ENDIF, which would be less confusing).
The problem is the IF statement on line 93, which is never closed. Proper indentation makes this much clearer. Here’s a copy of the file with the indentation fixed and the ENDIF added.
Thank you!
In the SpoutedBedCombustor tutorial, I’m having another problem with *** PAFC not specified, I’d like to ask what parameter PAFC refers to and where to change it?
Also, in general, it would be helpful if you mark a problem “solved” when your question has been answered, and start a new topic for a new question, instead of adding unrelated questions to an existing thread.