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).
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).
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?
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...