大家帮忙迅雷看看位置错误代码哪儿错了?

新手园地& & & 硬件问题Linux系统管理Linux网络问题Linux环境编程Linux桌面系统国产LinuxBSD& & & BSD文档中心AIX& & & 新手入门& & & AIX文档中心& & & 资源下载& & & Power高级应用& & & IBM存储AS400Solaris& & & Solaris文档中心HP-UX& & & HP文档中心SCO UNIX& & & SCO文档中心互操作专区IRIXTru64 UNIXMac OS X门户网站运维集群和高可用服务器应用监控和防护虚拟化技术架构设计行业应用和管理服务器及硬件技术& & & 服务器资源下载云计算& & & 云计算文档中心& & & 云计算业界& & & 云计算资源下载存储备份& & & 存储文档中心& & & 存储业界& & & 存储资源下载& & & Symantec技术交流区安全技术网络技术& & & 网络技术文档中心C/C++& & & GUI编程& & & Functional编程内核源码& & & 内核问题移动开发& & & 移动开发技术资料ShellPerlJava& & & Java文档中心PHP& & & php文档中心Python& & & Python文档中心RubyCPU与编译器嵌入式开发驱动开发Web开发VoIP开发技术MySQL& & & MySQL文档中心SybaseOraclePostgreSQLDB2Informix数据仓库与数据挖掘NoSQL技术IT业界新闻与评论IT职业生涯& & & 猎头招聘IT图书与评论& & & CU技术图书大系& & & Linux书友会二手交易下载共享Linux文档专区IT培训与认证& & & 培训交流& & & 认证培训清茶斋投资理财运动地带快乐数码摄影& & & 摄影器材& & & 摄影比赛专区IT爱车族旅游天下站务交流版主会议室博客SNS站务交流区CU活动专区& & & Power活动专区& & & 拍卖交流区频道交流区
白手起家, 积分 11, 距离下一级还需 189 积分
论坛徽章:0
#include &stdio.h&
#include &stdlib.h&
#include &sys/types.h&
#include &sys/stat.h&
#include &sys/msg.h&
#include &unistd.h&
#include &string.h&
#include &errno.h&
#define MFILE &/tmp/msg_log&
#define LOGTYPE 1
struct msg_log{
& && &&&char data[20];
int main(void)
& && &&&key_
& && &&&struct msg_log msg_
& && &&&//创建queue& &&&
& && &&&key = ftok(MFILE,'l');
& && &&&printf(&ftok error = %d\n&,errno);
& && &&&if((msgid = msgget(key,IPC_CREAT|0666)) == -1){
& && && && && & printf(&create error\n&);
& && && && && & exit(EXIT_FAILURE);
& && &&&printf(&errno = %d\n&,errno);
& && &&&msg_buf.mtype = LOGTYPE;
& && &&&strcpy(msg_buf.data, &xxxx&);
& && &&&msgsnd(msgid, &msg_buf, sizeof(msg_buf.data), IPC_NOWAIT);
& && &&&printf(&errno = %d\n&,errno);
& && &&&memset(&msg_buf,'\0',sizeof(msg_buf));
& && &&&printf(&msgid = %d\n&,msgid);
& && &&&if((ret = msgrcv(msgid, &msg_buf, sizeof(msg_buf.data), LOGTYPE, IPC_NOWAIT)) & 0){
& && && && &&&printf(&ret = %d, log.data = %s\n&,ret,msg_buf.data);
& && && &}
& && && & printf(&errno = %d\n&,errno);
& && &&&exit(EXIT_SUCCESS);
程序运行完结果是
ftok error = 0
msgid = 32769
errno = 42
为什么我从消息队列里面读不到数据!!!!!!!!!!
我在ubuntu桌面版可以正常运行,但是在centos,和ubuntu 服务器版都出现上面的错误。
小富即安, 积分 3177, 距离下一级还需 1823 积分
论坛徽章:0
#define ENOMSG& && &42&&/* No message of desired type */, 没有你要的消息。可以用ipcs 命令自己调试下。
白手起家, 积分 11, 距离下一级还需 189 积分
论坛徽章:0
原因找到了,该死的在64位机子上必需是long,
北京盛拓优讯信息技术有限公司. 版权所有 京ICP备号 北京市公安局海淀分局网监中心备案编号:22
广播电视节目制作经营许可证(京) 字第1234号
中国互联网协会会员&&联系我们:
感谢所有关心和支持过ChinaUnix的朋友们
转载本站内容请注明原作者名及出处请大家帮忙看看我的思路,错在哪儿?_中华会计网校论坛
今日新帖:97 在线学员:9384
论坛等级: ★学员
鲜花:<span id='flower
金币:<span id='medal21
注册会计师在审查应收账款时,发现帐上某笔记录“借:应收账款——A公司1000000,贷:主营业务收入1000000”,通过函证A公司检查该笔记录,证实A公司实际欠款50万元。那么,注册会计师首先认为管理层对营业收入账户的( )认定存在问题。A 发生
B 完整性 C 准确性 D 权利和义务正确答案是 C但我认为A,发生的认定也可能有错误,如果被审计单位因舞弊,有意高估营业收入,就是发生认定的错误了,对吗?
楼主其他文章
最美女会计
1403主题帖
论坛等级: 终极会员
回帖:9239
经验:45788
鲜花:<span id='flower8
金币:<span id='medal49
这种说法不正确,这道题目主要考查的是营业收入的准确性。该题目中,在账目上已经反映了该笔应收账款的存在,故没有必要再通过函证的方式来检查是否真的发生;通过函证主要是向致函单位了解该笔应收款项的具体金额,进而确定是否存在虚构收入等。
论坛等级: 终极会员
回帖:12650
经验:42140
鲜花:<span id='flower2
金币:<span id='medal2
这种说法不正确,这道题目主要考查的是营业收入的准确性。该题目中,在账目上已经反映了该笔应收账款的存在,故没有必要再通过函证的方式来检查是否真的发生;通过函证主要是向致函单位了解该笔应收款项的具体金额,进而确定是否存在虚构收入等。爱追风发表于 23:26:35嗯,说的没错,这里考核的是金额的问题,即被审计单位发生的这个交易已经进行了会计处理了,所以不存在是虚增还是漏记的问题,与发生、完整性没有关系了。现在是被审计单位记录了,但是记录的金额不对,所以是准确性。 清楚了吗?楼主加油哦!
【审计考点、疑点汇总】宁孜微讲座汇总贴 有志者事竟成,破釜沉舟,百二秦关终属楚苦心人天不负,卧薪尝胆,三千越甲可吞吴
7481主题帖
论坛等级: 论坛元老
回帖:53196
经验:217236
鲜花:<span id='flower9
金币:<span id='medal010
首先看金额 金额是错误的&&再看这个题目的问法 首先认为哪里错了
所以要是多选的话
姗姗认为A也应该是正确的
丫头的三元视频课程开讲了
正保开放平台
正保培训项目
我的新动态当前位置:
&请大家帮忙看看siesta输入文件有哪些错误
请大家帮忙看看siesta输入文件有哪些错误
作者 yangxuezhang
我这是第一次写输入文件,以前也没师兄做这个,也每个人问,希望高手不要嫌低级,帮我看一下,哪里有错误,不甚感激
SystemName Test for Ti3SiC2
SystemLabel Ti3SiC2
NumberOfAtoms& && && &&&11& && && && &# Number of atoms
NumberOfSpecies& && && &3& && && &&&# Number of species
%block Chemical_Species_Label
&&1& & 22&&Ti
&&2& & 6& &C
&&3& & 14&&Si
%endblock Chemical_Species_Label
PAO.BasisSize& && &SZ& &#???
# Lattice, coordinates, k-sampling
AtomicCoordinatesFormat ScaledCartesian # Format for coordinates
AtomicCoorFormatOut& &&&Ang
%block AtomicCoordinatesAndAtomicSpecies
& && &0.& & 0.& & 0.& &&&1
& && &0.& & 0.& & 4.& &&&3
& && &0.& & 0.& & 13.20375& && &&&3
& && &1.& & 0.& & 1.& &&&2
& && &1.& & 0.& & 7.531419& && &&&2
& && &0.& & 1.& & 10.073581& && & 2
& && &0.& & 1.& & 16.333919& && & 2
& && &0.& & 1.& & 2.& &&&1
& && &0.& & 1.& & 6.4170225& && & 1
& && &1.& & 0.& & 11.1879775& && &1
& && &1.& & 0.& & 15.2195225& && &1
%endblock AtomicCoordinatesAndAtomicSpecies
LatticeConstant& &&&3.082& &Ang
%block LatticeVectors
&&1.000&&0.500&&0.000
&&0.000&&0.866&&0.000
&&0.000&&0.000&&1.000
%endblock LatticeVectors
kgrid_cutoff& && &&&7. Ang& &#?????
# DFT, Grid, SCF
XC.functional& && && &&&LDA& && && &# Exchange-correlation functional type
XC.authors& && && && &&&CA& && && & # Particular parametrization of xc func
SpinPolarized& && && &&&.false.& &&&# Spin unpolarized calculation
MeshCutoff& && && && &&&200. Ry& &&&# Equivalent planewave cutoff for the grid
MaxSCFIterations& && &&&100& && && &# Maximum number of SCF iterations per step
DM.MixingWeight& && && &0.3& && && &# New DM amount for next SCF cycle
DM.Tolerance& && && && &1.d-4& && & # Tolerance in maximum difference
& && && && && && && && && && && && &# between input and output DM
DM.NumberPulay& && && & 3& && && &&&# Number of SCF steps between pulay mixing
# Eigenvalue problem: order-N or diagonalization
SolutionMethod& && && & diagon& && &# OrderN or Diagon
ElectronicTemperature& &5 K& && &&&# Temp. for Fermi smearing
# Molecular dynamics and relaxations
MD.TypeOfRun& && && && &cg& && && & # Type of dynamics:
# Output options
WriteCoorInitial
WriteCoorStep
WriteForces
WriteKpoints& && && && &.false.
WriteEigenvalues& && &&&.false.
WriteKbands& && && && & .false.
WriteBands& && && && &&&.false.
WriteMullikenPop& && &&&1& && && && &# Write Mulliken Population Analysis
WriteCoorXmol& && && &&&.false.
WriteMDCoorXmol& && && &.false.
WriteMDhistory& && && & .false.
WriteCoorXmol& && && &&&.false.
# Options for saving/reading information
DM.UseSaveDM& && && && && && && && & # Use DM Continuation files
MD.UseSaveXV& && && && &.false.& && &# Use stored positions and velocities
MD.UseSaveCG& && && && &.false.& && &# Use stored positions and velocities
SaveRho& && && && && && && && && && &# Write valence pseudocharge at the mesh
SaveDeltaRho& && && && && && && && & # Write RHOscf-RHOatm at the mesh
SaveElectrostaticPotential .false.& &# Write the total elect. pot. at the mesh
SaveTotalPotential& && &.false.& && &# Write the total pot. at the mesh
WriteSiestaDim& && && & .false.& && &# Write minimum dim to siesta.h and stop
WriteDenchar& && && && && && && && & # Write information for DENCHAR
为什么我的问题都木有人跟帖呢?
这是提交后的scrip.err文件里面的
ERROR STOP from Node:& & 0
--------------------------------------------------------------------------
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.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpiexec has exited due to process rank 0 with PID 14863 on
node dell745-2-1.local exiting without calling &finalize&. This may
have caused other processes in the application to be
terminated by signals sent by mpiexec (as reported here).
--------------------------------------------------------------------------
real& & 0m0.866s
user& & 0m0.041s
sys& &&&0m0.054s
给出你的标准输出的最后的出错信息。这些是MPI的,看不出来。
引用回帖:: Originally posted by zhangguangping at
给出你的标准输出的最后的出错信息。这些是MPI的,看不出来。 下面是*.out文件里面的,为了找错误,和前面的输入文件比,我注释掉了很多项,不过还是不行,不知道是什么问题
Siesta Version:& && && && && && && && && && && && && & siesta-3.1
Architecture&&: x86_64-unknown-linux-gnu--Intel
Compiler flags: /opt/openmpi-intel11/bin/mpif90 -g -O2
PARALLEL version
* Running on& & 2 nodes in parallel
&& Start of run:&&24-SEP-:55
& && && && && && && && && &***********************
& && && && && && && && && &*&&WELCOME TO SIESTA&&*
& && && && && && && && && &***********************
reinit: Reading from standard input
************************** Dump of input data file ****************************
SystemName Test for Ti3SiC2
SystemLabel Ti3SiC2
NumberOfAtoms& && && &&&11& && && && &# Number of atoms
NumberOfSpecies& && && &3& && && &&&# Number of species
%block Chemical_Species_Label
&&1& & 22&&Ti
&&2& & 6& &C
&&3& & 14&&Si
%endblock Chemical_Species_Label
#PAO.BasisSize& && &SZ& &#???
# Lattice, coordinates, k-sampling
AtomicCoordinatesFormat Ang&&# Format for coordinates
AtomicCoorFormatOut& &&&Ang
%block AtomicCoordinatesAndAtomicSpecies
& && &0.& & 0.& & 0.& &&&1
& && &0.& & 0.& & 4.& &&&3
& && &0.& & 0.& & 13.20375& && &&&3
& && &1.& & 0.& & 1.& &&&2
& && &1.& & 0.& & 7.531419& && &&&2
& && &0.& & 1.& & 10.073581& && & 2
& && &0.& & 1.& & 16.333919& && & 2
& && &0.& & 1.& & 2.& &&&1
& && &0.& & 1.& & 6.4170225& && & 1
& && &1.& & 0.& & 11.1879775& && &1
& && &1.& & 0.& & 15.2195225& && &1
%endblock AtomicCoordinatesAndAtomicSpecies
LatticeConstant& &&&3.082& &Ang
%block LatticeVectors
&&1.000&&0.500&&0.000
&&0.000&&0.866&&0.000
&&0.000&&0.000&&1.000
%endblock LatticeVectors
#kgrid_cutoff& && &&&7. Ang& &#?????
# DFT, Grid, SCF
#XC.functional& && && &&&LDA& && && &# Exchange-correlation functional type
#XC.authors& && && && &&&CA& && && & # Particular parametrization of xc func
#SpinPolarized& && && &&&.false.& &&&# Spin unpolarized calculation
#MeshCutoff& && && && &&&200. Ry& &&&# Equivalent planewave cutoff for the grid
#MaxSCFIterations& && &&&100& && && &# Maximum number of SCF iterations per step
#DM.MixingWeight& && && &0.3& && && &# New DM amount for next SCF cycle
#DM.Tolerance& && && && &1.d-4& && & # Tolerance in maximum difference
& && && && && && && && && && && && &# between input and output DM
#DM.NumberPulay& && && & 3& && && &&&# Number of SCF steps between pulay mixing
# Eigenvalue problem: order-N or diagonalization
SolutionMethod& && && & diagon& && &# OrderN or Diagon
#ElectronicTemperature& &5 K& && &&&# Temp. for Fermi smearing
# Molecular dynamics and relaxations
#MD.TypeOfRun& && && && &cg& && && & # Type of dynamics:
# Output options
#WriteCoorInitial
#WriteCoorStep
#WriteForces
#WriteKpoints& && && && &.false.
#WriteEigenvalues& && &&&.false.
#WriteKbands& && && && & .false.
#WriteBands& && && && &&&.false.
#WriteMullikenPop& && &&&1& && && && &# Write Mulliken Population Analysis
#WriteCoorXmol& && && &&&.false.
#WriteMDCoorXmol& && && &.false.
#WriteMDhistory& && && & .false.
#WriteCoorXmol& && && &&&.false.
# Options for saving/reading information
#DM.UseSaveDM& && && && && && && && & # Use DM Continuation files
#MD.UseSaveXV& && && && &.false.& && &# Use stored positions and velocities
#MD.UseSaveCG& && && && &.false.& && &# Use stored positions and velocities
#SaveRho& && && && && && && && && && &# Write valence pseudocharge at the mesh
#SaveDeltaRho& && && && && && && && & # Write RHOscf-RHOatm at the mesh
#SaveElectrostaticPotential .false.& &# Write the total elect. pot. at the mesh
#SaveTotalPotential& && &.false.& && &# Write the total pot. at the mesh
#WriteSiestaDim& && && & .false.& && &# Write minimum dim to siesta.h and stop
#WriteDenchar& && && && && && && && & # Write information for DENCHAR
************************** End of input data file *****************************
reinit: -----------------------------------------------------------------------
reinit: System Name: Test for Ti3SiC2
reinit: -----------------------------------------------------------------------
reinit: System Label: Ti3SiC2
reinit: -----------------------------------------------------------------------
initatom: Reading input for the pseudopotentials and atomic orbitals ----------
Species number:& && && && &1&&Label: Ti Atomic number:& && && & 22
Species number:& && && && &2&&Label: C Atomic number:& && && &&&6
Species number:& && && && &3&&Label: Si Atomic number:& && && & 14
Ground state valence configuration:& &4s02&&3d02
Reading pseudopotential information in formatted form from Ti.psf
Pseudopotential generated from a relativistic atomic calculation
There are spin-orbit pseudopotentials available
Spin-orbit interaction is not included in this calculation
Valence configuration for pseudopotential generation:
3s( 2.00) rc: 1.30
3p( 6.00) rc: 1.30
3d( 2.00) rc: 1.30
4f( 0.00) rc: 1.98
Ground state valence configuration:& &2s02&&2p02
Reading pseudopotential information in formatted form from C.psf
Valence configuration for pseudopotential generation:
2s( 2.00) rc: 1.49
2p( 2.00) rc: 1.52
3d( 0.00) rc: 1.58
Ground state valence configuration:& &3s02&&3p02
Reading pseudopotential information in formatted form from Si.psf
Valence configuration for pseudopotential generation:
3s( 2.00) rc: 1.89
3p( 2.00) rc: 1.89
3d( 0.00) rc: 1.89
4f( 0.00) rc: 1.89
Semicore shell(s) with&&8 electrons included in the valence for
Ti& && && && && && & must be in PAO.Basis (it has semicore states)
ERROR STOP from Node:& & 0
希望大侠多多帮忙,
引用回帖:: Originally posted by yangxuezhang at
下面是*.out文件里面的,为了找错误,和前面的输入文件比,我注释掉了很多项,不过还是不行,不知道是什么问题
Siesta Version:& && && && && && && && && && && && && & siesta-3.1
Architecture&&: x86_64-unk ... 从输出文件中看出来,你计算中的Ti元素的赝势将8个本应该属于core的电子放到了价电子的考虑范围,这样可以更好的描述不同环境中的Ti的电子结构。但是你需要对Ti的基函数进行手动设置。而不能用简单的PAO.BasisSize& && &SZ关键字,使用这个关键字默认只给价电子产生基函数。所以你需要使用
%block PAO.Basis
%endblock PAO.Basis
来设置,比如
PAO.BasisSize& && &DZP
PAO.EnergyShift& && & 100 meV
对应的C元素的基函数为:
%block PAO.Basis
C& && && && && && && &2& && && && && && &&&# Species label, number of l-shells
n=2& &0& &2& && && && && && && && & # n, l, Nzeta
& &4.633& && &3.432& &
& &1.000& && &1.000& &
n=2& &1& &2 P& &1& && && && && && & # n, l, Nzeta, Polarization, NzetaPol
& &5.659& && &3.653& &
& &1.000& && &1.000
%endblock PAO.Basis
当然,这个与具体的赝势还有点关系。
你可以比照着这个对Ti进行一下设置,将那8个电子的基函数明确的写出来。我没有算过Ti,所以不会设置。&&
还有一个办法就是你可以使用一个没有semicore态电子的Ti赝势。你从官网上下载一个就是了。我看了一下官网上的LDA和GGA的Ti赝势就都没有semicore态。
引用回帖:: Originally posted by zhangguangping at
从输出文件中看出来,你计算中的Ti元素的赝势将8个本应该属于core的电子放到了价电子的考虑范围,这样可以更好的描述不同环境中的Ti的电子结构。但是你需要对Ti的基函数进行手动设置。而不能用简单的PAO.BasisSize ... 我是刚入门,我也不会设置Ti,我试了你给的两种赝势,另外还改了
PAO.BasisSize& && &DZP& &#???
但是还是不行,错误文件
Semicore shell(s) with -1 electrons included in the valence for
Ti& && && && && && & must be in PAO.Basis (it has semicore states)
ERROR STOP from Node:& & 0
您使用的赝势含有semi-core states,基组必须显式表达,利用PAO.Basis模块来定义
24小时热帖
下载小木虫APP
与700万科研达人随时交流}

我要回帖

更多关于 迅雷看看错误码 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信