【发布时间】:2014-09-14 11:30:03
【问题描述】:
我正在尝试在 linux 集群上运行模拟。在我的主目录的头节点上,我有
/home/checkouts (contains the executable of the model)
和
/home/models/run (contains the input files for the model)
在模拟过程中,我将输出数据保存在本地节点上,最后我想将输出文件复制到 /home/models/output/run。我得到的是这样的输出/运行/运行文件夹的无限循环
/home/models/output/run/run/output/run/run/output/run/run/output/run/run ...
有人知道我在哪里犯了错误吗?我使用以下 sh 脚本来运行模型:
rundir=$PWD
outputdir=/home/models/output
run=$(basename $rundir) # run
cp -r $rundir /var/tmp/$run
pushd /var/tmp/$run
mpirun -np $NO_OF_CORES -machinefile nodes ~/checkouts/x_model-v1.21.$
popd
cp -r /var/tmp/$run $outputdir
【问题讨论】: