【gromacs学习】-gromacs报错解决方案

这篇博客记录了gromacs初学者在学习过程中遇到的'Atom index n in position_restraints out of bounds'错误及其解决方案。问题源于topol.top文件中分子位置约束文件的不正确排列,正确做法是将各部分的itp和posre.itp文件合并。强调了topol.top文件的编写正确性对避免此类错误的重要性。

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

gromacs学习中,面临各种报错,作为初学者,自己把踩过的坑一一记录下来,希望对后来者有所帮助。

1. 报错: Atom index n in position_restraints out of bounds

解决方案:见官网,链接:http://www.gromacs.org/Documentation/Errors#Atom_index_n_in_position_restraints_out_of_bounds
解释:

在这里插入图片描述

简单说就是topol.top文件中最后部分分子的的位置约束文件排列不整齐,比如:
WRONG:
#include “topol_A.itp”
#include “topol_B.itp”
#

Executable: /public/software/gromacs-2023.2-gpu/bin/gmx_mpi Data prefix: /public/software/gromacs-2023.2-gpu Working dir: /public/home/zkj/BSLA_in_Menthol_and_Olecicacid/run1 Command line: gmx_mpi mdrun -deffnm npt-nopr -v -update gpu -ntmpi 0 -ntomp 1 -nb gpu -bonded gpu -gpu_id 0 Reading file npt-nopr.tpr, VERSION 2023.2 (single precision) Changing nstlist from 10 to 100, rlist from 1 to 1.065 Update groups can not be used for this system because there are three or more consecutively coupled constraints ------------------------------------------------------- Program: gmx mdrun, version 2023.2 Source file: src/gromacs/taskassignment/decidegpuusage.cpp (line 786) Function: bool gmx::decideWhetherToUseGpuForUpdate(bool, bool, PmeRunMode, bool, bool, gmx::TaskTarget, bool, const t_inputrec&, const gmx_mtop_t&, bool, bool, bool, bool, bool, const gmx::MDLogger&) Inconsistency in user input: Update task on the GPU was required, but the following condition(s) were not satisfied: The number of coupled constraints is higher than supported in the GPU LINCS code. For more information and tips for troubleshooting, please check the GROMACS website at http://www.gromacs.org/Documentation/Errors ------------------------------------------------------- -------------------------------------------------------------------------- MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD with errorcode 1. NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes. You may or may not see output from other processes, depending on exactly when Open MPI kills them. -------------------------------------------------------------------------- [warn] Epoll MOD(1) on fd 8 failed. Old events were 6; read change was 0 (none); write change was 2 (del): Bad file descriptor [warn] Epoll MOD(4) on fd 8 failed. Old events were 6; read change was 2 (del); write change was 0 (none): Bad file descriptor
最新发布
03-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值