vasp计算脚本放在服务器的位置,vasp任务提交脚本的问题 - 第一原理 - 小木虫 - 学术 科研 互动社区...

该博客内容涉及PBS作业脚本的使用,用于在并行计算环境中运行VASP软件。脚本中定义了节点数量、walltime和环境变量,并记录了作业的开始和结束时间,以及运行的主机和处理器信息。问题在于脚本可能无法正确处理特定任务,作者寻求帮助以解决这个问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

#!/bin/bash

#

#PBS -l nodes=1:ppn=8

#PBS -l walltime=240:00:00

#PBS -N c

#PBS -j oe

#PBS -V

# setup runfile

# setup workpath and go to work dir

export MPICHROOT=/opt/intel/impi/4.0.0.027/bin

export VASPROOT=/export/apps

export PATH=$PATH:$VASPROOT:$MPICHROOT:.

logfile=log

cd $PBS_O_WORKDIR

# Define number of processors

NPROCS=`wc -l < $PBS_NODEFILE`

# output PBS info to result

rm -f ./result

echo ================= PBS info ==================== >>result

echo Working directory is $PBS_O_WORKDIR >>result

echo Running on host `hostname` >>result

echo Directory is `pwd` >>result

echo This jobs runs on the following processors: >>result

echo `cat $PBS_NODEFILE` >>result

echo This job has allocated $NPROCS nodes >>result

echo  ********************************************** * >>result

echo  Start Time is `date` >>result

echo  ************************************************>>result

$MPICHROOT/mpirun -r ssh -v -machinefile $PBS_NODEFILE -np $NPROCS $VASPROOT/vasp_nocoliear > $logfile

echo ================================================ >>result

echo  ************************************************>>result

echo End Time is `date` >>result

echo  ************************************************>>result

#!/bin/bash

#

#PBS -l nodes=3:ppn=2

#PBS -l walltime=240:00:00

#PBS -N c

#PBS -j oe

#PBS -V

# setup runfile

# setup workpath and go to work dir

export MPICHROOT=/opt/intel/impi/4.0.0.027/bin

export VASPROOT=/export/apps

export PATH=$PATH:$VASPROOT:$MPICHROOT:.

logfile=log

cd $PBS_O_WORKDIR

# Define number of processors

NPROCS=`wc -l < $PBS_NODEFILE`

# output PBS info to result

rm -f ./result

echo ================= PBS info ==================== >>result

echo Working directory is $PBS_O_WORKDIR >>result

echo Running on host `hostname` >>result

echo Directory is `pwd` >>result

echo This jobs runs on the following processors: >>result

echo `cat $PBS_NODEFILE` >>result

echo This job has allocated $NPROCS nodes >>result

echo  ********************************************** * >>result

echo  Start Time is `date` >>result

echo  ************************************************>>result

$MPICHROOT/mpirun -r ssh -v -machinefile $PBS_NODEFILE -np $NPROCS $VASPROOT/vasp_mpi > $logfile

echo ================================================ >>result

echo  ************************************************>>result

echo End Time is `date` >>result

echo  ************************************************>>result

以上是我任务提交的脚本,麻烦各位亲们高手们耐心看看哦~~~~

之前我发过谁算过224个原子的帖子,我以为是自己输入文件的问题,经过各种麻烦各种帮助,我发现貌似是提交任务的脚本有问题,它可能不能针对我的任务

请 各位路过的亲们指导下我这只菜鸟。。。感激。。。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值