English 中文(简体)
三、防止贩运枪支的例行活动时的腐败
原标题:Parameter corruption when interfacing FORTRAN lapack routine

我与英特尔Fortran Compiler11在2008年视频演播室遇到腐败问题。 Im在Windows 7 64-bit上工作。

This is a call to a (F77) lapack subroutine in my F90 program:

  call dgetrs( N , nbParams, one, a, nbParams, ipv, x, nbParams, err)

在发出这一呼吁之前,夸张显示了所有参数的预期价值。 a 和x 两种“可转移”变量,其大小(nbParams,nbParams)和(nbParams)分别。

然而,在执行这条线后,执行停止了侵犯出入通道读址0x00000001。 自2006年以来 我已经以易卜拉方式汇编了能够在电话中穿透的包装材料,我看到,除了输电外,所有东西都只是在利比里亚人总局的第一份声明中腐败。

  SUBROUTINE DGETRS( TRANS, N, NRHS, A, LDA, IPIV, B, LDB, INFO )
  ...
  CHARACTER          TRANS
  INTEGER            INFO, LDA, LDB, N, NRHS
  ...
  INTEGER            IPIV( * )
  DOUBLE PRECISION   A( LDA, * ), B( LDB, * )
  ......
  INFO = 0     **--> Now all input vars but TRANS are corrupted or dereferenced!**

我会尝试一切,我无法找到问题。 谁能帮助我找到问题?

感谢你们的帮助!

问题回答

这种问题通常出现在没有接口的假定形形形形阵列中。 1. 宣布接口如下:

INTERFACE
   SUBROUTINE DGETRS( TRANS, N, NRHS, A, LDA, IPIV, B, LDB, INFO )
    CHARACTER          TRANS
    INTEGER            INFO, LDA, LDB, N, NRHS
    INTEGER            IPIV( * )
    DOUBLE PRECISION   A( LDA, * ), B( LDB, * )
  END SUBROUTINE
END INTERFACE




相关问题
How do I fix this Fortran text parser for Lapack within Gem5

After about an hour, I need to ask for some help. I ve downloaded the math benchmark Lapack to run within a few CPU configurations for the simulation tool Gem5, which lets you build X86 computers and ...

gfortran, DLL, underscore

I want to access some subroutines from a third party DLL. The functions use STDCALL as the calling convention. Running dumpbin /export foo.dll gives me something like: ... 7 6 ...

Getting started with a new code in an unfamiliar language

I m starting a new project in a language I m less familiar with (FORTRAN) and am in the discovery phase. Normally reading through and figuring out code is a fairly simple task, however, this code ...

assigning values to an integer array within a Fortran module

I have a module in Fortran called QFoo. It defines a type QFooType. I want to initialize all the elements of integer array is_n to 0 and want to do it within the module. Could someone help? Thank ...

WinDbg and Intel Visual Fortran

Has anyone used WinDbg to debug an Intel Visual Fortran routine? If I have the Fortran source file that crashes with an AccViol, how can I use WinDbg to determine the line that is crashing?

converting MATLAB code to Fortran [closed]

I a medical researcher with code written in MATLAB 2009b that runs very slowly because of a self-referential loop (not sure of the programming lingo here), i.e., the results of the first iteration is ...

热门标签