UDF Error - undeclared(first use in this function)
Posted: Thu May 20, 2021 3:29 pm
Dear Code_Saturne team,
Bonjour!
I'm using version 7.1-alpha and I'm trying to modify SEM.
1) My simulation case is a simple turbulent channel flow, and it works well with the synthetic eddy method embedded in cs.
2) I chose to modify "cs_les_inflow.c" file and "cs_les_inflow.h" file. Then I put the new files in my case' SRC and in the base source file.
3)At first time, I tried to just make some minor changes on the original model, I added a new switch case and named it "AEM". So to test the feasibility(whether I successefully added a new case besides SEM, Batten, Random, etc), I copied the SEM content, only changed its name and keep the rest exactly the same as SEM.
4)Then I wrote "cs_user_les_inflow-base.c" and chose new CS_INFLOW method 'AEM'. But I got an error as below:
Veuillez trouver les fichers dans la piece joint. Je vous remercie sincèrement!
Best regards,
Gen
Bonjour!
I'm using version 7.1-alpha and I'm trying to modify SEM.
1) My simulation case is a simple turbulent channel flow, and it works well with the synthetic eddy method embedded in cs.
2) I chose to modify "cs_les_inflow.c" file and "cs_les_inflow.h" file. Then I put the new files in my case' SRC and in the base source file.
3)At first time, I tried to just make some minor changes on the original model, I added a new switch case and named it "AEM". So to test the feasibility(whether I successefully added a new case besides SEM, Batten, Random, etc), I copied the SEM content, only changed its name and keep the rest exactly the same as SEM.
4)Then I wrote "cs_user_les_inflow-base.c" and chose new CS_INFLOW method 'AEM'. But I got an error as below:
I thought I've made the declaration and I couldn't figure out how to correct it. I will be really grateful if you could kindly give me some advice.error: ‘CS_INFLOW_AEM’ undeclared (first use in this function); did you mean ‘CS_INFLOW_SEM’?
cs_les_inflow_add_inlet(CS_INFLOW_AEM,
^~~~~~~~~~~~~
CS_INFLOW_SEM
Veuillez trouver les fichers dans la piece joint. Je vous remercie sincèrement!
Best regards,
Gen