As I mentioned in a previous post, I finally succeeded to launch a single simulation on a cluster using the method presented in https://www.hpc.ntnu.no/display/hpc/Tut ... de+Saturne
But now I have a problem when trying to apply the same method for a coupled simulation (using cs_user_coupling-saturne.c) on a cluster. Firstly I use the command "code_saturne run --initialize --coupling coupling_parameters.py" to initialise a calculation. Then in the newly created directory in RESU/COUPLING, two running scripts are created: run_solver, mpmd_exec.sh. As what has been done for a single simulation, the run_solver is modified by adding some information related to job submission:
Code: Select all
#PBS -S /bin/bash
#PBS -N job-VIV
#PBS -o output.txt
#PBS -e error.txt
#PBS -l walltime=72:00:00
#PBS -l select=1:ncpus=30:mpiprocs=30:mem=30gb
In the attached file, I give a small test that fails with two coupled cases: fluid1 and fluid2. When I submit the simulation, I encounter an error in fluid1, saying that
Code: Select all
/gpfs/workdir/lzhang/code_saturne-5.0.8/src/base/cs_sat_coupling.c:2010: Fatal error.
At least 1 Code_Saturne coupling was defined for which
no communication with a Code_Saturne instance is possible.
Do you have any idea to fix this problem, please? Maybe I should also modify the script mpmd_exec.sh.
Thanks a lot!
Best regard,
Lei