Hello everybody!
I'm using the sat/sat coupling with three meshs interacting (2 cylinders in a bigger domain). I need to define the "application name" to relation different instances of the simulation.
I've seen in the user guide, that the option to be put in the "Kernel command line options" is "--app-name".
Stupidly, I don't know where and how to write this option, I assume is should be somewhere close to the "runcase" file.
Thanks for your help,
Guillaume
Kernel command line options
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
Re: Kernel command line options
Hello,
Which version are you using ? In versions 2.1 and above, you may set the application name in the runase_coupling file (created at the level above case directories when multiple cases are created simultaneously, which assumes a coupled calculation).
In version 2.0, applications has an id, not a name, and the Id is set automatically by the Python script (--new-runcase option to code_saturne create, as using the classical bash runcase for code coupling with version 2.0 is not possible).
Best regards,
Yvan
Which version are you using ? In versions 2.1 and above, you may set the application name in the runase_coupling file (created at the level above case directories when multiple cases are created simultaneously, which assumes a coupled calculation).
In version 2.0, applications has an id, not a name, and the Id is set automatically by the Python script (--new-runcase option to code_saturne create, as using the classical bash runcase for code coupling with version 2.0 is not possible).
Best regards,
Yvan
Re: Kernel command line options
Hello Yvan,
First thank you very much for your time.
I'm using v2.1. I want to set the name ("saturne_name") of the different instance as prescribe in the cs_user_saturne_coupling.c user file, for them to find each other :
therefore I think the runcase_coupling file would only set the general name of the coupling case. I attached to the message my user files (I changed names but only for sending them), and runcase_coupling file. In my case I have three sub-cases : HAUT, BAS and DOMAINE. Both HAUT and BAS are coupled with DOMAINE.
I use the "BAS" "HAUT" "DOMAINE" as 'saturne_name' argument, but I'm not sure it is right.
I hope you understand my problem,
Regards
Guillaume
First thank you very much for your time.
I'm using v2.1. I want to set the name ("saturne_name") of the different instance as prescribe in the cs_user_saturne_coupling.c user file, for them to find each other :
Code: Select all
* In the case of only 2 Code_Saturne instances, the 'saturne_name' argument
* is ignored, as there is only one matching possibility.
*
* In case of multiple couplings, a coupling will be matched with available
* Code_Saturne instances based on the 'saturne_name' argument."
I use the "BAS" "HAUT" "DOMAINE" as 'saturne_name' argument, but I'm not sure it is right.
I hope you understand my problem,
Regards
Guillaume
- Attachments
-
- runcase_coupling.txt
- (5.48 KiB) Downloaded 225 times
-
- cs_user_saturne_coupling_haut.c
- (4.02 KiB) Downloaded 214 times
-
- cs_user_saturne_coupling_domaine.c
- (4.32 KiB) Downloaded 229 times
Re: Kernel command line options
Hello,
Your runcase_coupling seems correct.
Also, by default, the domain names match the directory names of the corresponding cases.
When running a case, in your RESU/<run_id> or temporary execution directory the "run_solver.sh" (or possibly mpmd_configfile or mpmd_exec.sh depending on your MPI configuration) will contain the command line for the solver, including the --app-name option, so you may use it to check the options passed in case of a problem.
Best regards,
Yvan
Your runcase_coupling seems correct.
Also, by default, the domain names match the directory names of the corresponding cases.
When running a case, in your RESU/<run_id> or temporary execution directory the "run_solver.sh" (or possibly mpmd_configfile or mpmd_exec.sh depending on your MPI configuration) will contain the command line for the solver, including the --app-name option, so you may use it to check the options passed in case of a problem.
Best regards,
Yvan
Re: Kernel command line options
Thank you Yvan, I checked the run_solver.sh file, and indeed names are in order.