- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all
This morning I faced a trouble with access violation (severe 157) to an external function F2 in an external subroutine and I could not identity which step went wrong (I suspect I miss something but do not know which one), so I am here to ask for help. I am using Visual Studio 2010 (Fortran 90).
My program looks like:
Program Block-Matrix
.
.
Interface
subroutine tridiagonalization(xi_0, nshell, lambda, epsilo, t, V, count2)
include 'link_fnl_shared.h'
include 'link_fnl_static.h'
use umach_int
use csitg_int
use csval_int
use csint_int
use FMZM (some MP package)
use RLINE_INT
use QDAGS_INT
implicit none
real(kind(1d0)), intent(in) :: lambda, V
real(kind(1d0)), intent(out) :: xi_0
integer, intent(in) :: nshell, count2
real(kind(1d0)), dimension(0:nshell), intent(out) :: epsilo, t
end subroutine
.
.
End Interface
.
.
End program
Subroutine tridiagonalization(xi_0, nshell, lambda, epsilo, t, V, count2)
use package shown above in the interface
some variables (kind(1d0))
real(kind(1d0)) :: F2
external :: F2
call D_QDAGS(F2, Lambda**(-i-1), Lambda**(-i), numerator) <-- The compiler indicate the access violation here
end subroutine
real function F2(x, B_0, B_1)
real(kind(1d0)), intent(in) :: B_0, B_1 (some parameters from data fitting )
real(kind(1d0)) :: x
F2 = B_0*x + B_1*x**2
End function.
I will appreciate your help if any of you can point out at which step I made a stupid mistake.
Best
Meng-Chieh
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page