Page 1 of 1
Kernel command line options
Posted: Wed Feb 22, 2012 5:34 pm
by Guillaume Mercier
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
Re: Kernel command line options
Posted: Wed Feb 22, 2012 11:57 pm
by Yvan Fournier
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
Re: Kernel command line options
Posted: Thu Feb 23, 2012 12:12 pm
by Guillaume Mercier
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 :
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."
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
Re: Kernel command line options
Posted: Thu Feb 23, 2012 12:23 pm
by Yvan Fournier
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
Re: Kernel command line options
Posted: Thu Feb 23, 2012 1:50 pm
by Guillaume Mercier
Thank you Yvan, I checked the run_solver.sh file, and indeed names are in order.