Ask Your Question
0

ERROR : File AGRIF_FixedGrids.in not found.

asked 2022-07-08 11:22:58 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >5 is welcome to improve it.

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? C:\fakepath\submit_job.sh

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2022-07-08 16:05:13 +0200

andres gravatar image

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"
edit flag offensive delete link more

Comments

Thanks Andres. Indeed changing the directory works.

ify gravatar imageify ( 2022-07-08 17:13:39 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2022-07-08 11:22:58 +0200

Seen: 21 times

Last updated: Jul 08