ERROR : File AGRIF_FixedGrids.in not found

Hello Everyone,

I encountered this error whenever I try to used CROCO-Nesting run. I already created the necessary files for the simulation without any problem. When I tested the run ./croco croco.in > croco.out interactively it works fine. I could see the run going smoothly.

However, since the simulation might take a bit of time, I have to place my simulation on a job scheduler. Using a bash script (see below), I bump into this error:

ERROR : File AGRIF_FixedGrids.in not found.

Perhaps indicating that the model I used couldn’t find the file AGRIF_FixedGrids.in. This file is located in my run directory and as I said earlier, when run inteactively for testing purpose, works well.

Has anymore encountered this problem? It is a problem from my machine (I attached by job submission script below) or a potential bug?
submit_job.sh

Thanks

I think the problem is that the job scheduler “is not” in your working directory. Please try this

#!/bin/bash

#----------------- 
### PBS job name
#----------------
#PBS -N RUN_CROCO_NESTED


PBS_O_WORKDIR=/data/labspace/CROCO_DIR/CONFIGS/NESTED_AGRIF
cd $PBS_O_WORKDIR
echo "working in $PBS_O_WORKDIR"

# submit your job
date

./croco croco.in > ${PBS_O_WORKDIR}/croco.out

date

echo "Finish Job"

Thanks Andres. Indeed changing the directory works.

Writing test