Page 1 of 1
code_saturne run --finalize
Posted: Mon Aug 15, 2016 6:27 pm
by deandrade87
Hello,
in version 4.0 there is no
command, therefore I'm trying to use
and then submit each "run_solver" file to my queueing system. After running all the cases, I have the results in the scratch folder.
Now, how do I use
to copy the files back to the RESU folder? The help in the command is not enough to understand where to run the command and what arguments should be used (if any).
Thanks
Jacopo
Re: code_saturne run --finalize
Posted: Mon Aug 15, 2016 7:56 pm
by Yvan Fournier
Hello Jacopo,
If I remember correctly, you need to add --id=<name_of_run_id> to the --finalize option (the name of the run id matches the sub-directory name under RESU).
Also, if your cases and scratch are on the same filesystem, using a "scratch" is really not useful (we do it because of old habits, but it is only useful if scratch is a faster or better adapted filesystem for running the code than the filesystem your cases are created on.
To avoid using a scratch, either don't define i in your install's code_saturne.cfg file, or if you do not have admin access to that install, add "scratchdir=/" in you own $HOME/.code_saturne.cfg
With no separate scratch, the code already runs in RESU/run_id, so all --finalize does is remove temporary files (such as the cs_solver executable, run_solver, and mesh_input).
Cheers,
Yvan
Re: code_saturne run --finalize
Posted: Tue Aug 16, 2016 11:34 am
by deandrade87
Hi Yvan,
thank you for the answer. In my case the scratch filesystem is much faster than the home one, so I need to launch things there. Also, where should I run the command from? From the case root folder? Or from the scratch folder?
Jacopo
Re: code_saturne run --finalize
Posted: Tue Aug 16, 2016 12:51 pm
by Yvan Fournier
Hello Jacopo,
I think you can run the code_saturne run --finalize command from either scratch or main directory, but if in doubt, I'd run it from the main directory.
But in 4.2, when you run with --submit, the submitted script runs on the scratch directory, an the finalization stage still needs to work, an I don't remember needing changes to make that part work...
Cheers,
Yvan