Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: Derived Typ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 17 Topic 8194 of 8775
Post > Topic >>

Re: Derived Type Pointer Allocation Issue

by Michael <mwpowellnm@[EMAIL PROTECTED] > May 1, 2008 at 08:15 AM

On Apr 30, 6:48=A0pm, Steve Lionel <steve.lio...@[EMAIL PROTECTED]
> wrote:

Thanks. And yessir, even with /traceback (already on) and /
check:pointer, still failing at run-time.

Declared as an allocatable,

     if (not(allocated(grid_dat%zg))) then
        write(*, '(/1x, "ALLOCATE_GRID: grid coordinates, allocating
grid_dat%zg")')
        allocate(grid_dat%zg(idim, jdim), stat =3D allocerr)
        if (allocerr /=3D 0) stop 3
     endif

Or as a pointer,

     if (size(grid_dat%zg)=3D=3D0) then
        write(*, '(/1x, "ALLOCATE_GRID: grid coordinates, allocating
grid_dat%zg")')
        allocate(grid_dat%zg(idim, jdim), stat =3D allocerr)
        if (allocerr /=3D 0) stop 3
     endif

Regardless, allocate is failing with the following command line
feedback,

forrtl: severe (157): Program Exception - access violation
Image              PC        Routine            Line        Source
ntdll.dll          7C911E58  Unknown               Unknown  Unknown
ntdll.dll          7C918251  Unknown               Unknown  Unknown
ntdll.dll          7C911C76  Unknown               Unknown  Unknown
lodi.exe           00B1C521  Unknown               Unknown  Unknown

Which has to do with something like RtlInitializeCriticalSection(),
deep within NTDLL.DLL. Not especially productive (i.e. no resolution
to the issue) here, however thanks all for the insight, really and
truly. Next place to go appears to be into the Intel Fortran forums.

That said, I can't say this doesn't have something to do with a
programmatic issue elsewhere in the code. That's entirely possible
(i.e. scientists having written the code before we inherited it).
Nothing against scientists, mind you, but there's something to be said
about a professional developer's awareness of memory management
issues.

Anywho... Neither here nor there, apart from the fact we've got to get
through the consequences of said issues, of course...

> Michael wrote:
> > After taking out the stat from allocate, we get further, but we still
> > end up failing, same place in NTDLL.DLL.
>
> No, you're failing in your application. =A0Try adding /traceback to the
> set of options, so you get more detailed information, and you might also
> try /check:pointer.
>
> If you need more help, post in the Intel Fortran user forum or contact
> Intel sup****t (links below).
>
> I am not aware of any bugs related to ALLOCATABLE in the version you are
> using.
> --
>
> Steve Lionel
> Developer Products Division
> Intel Cor****ation
> Nashua, NH
>
> For email address, replace "invalid" with "com"
>
> User communities for Intel Software Development Products
> =A0 =A0http://softwareforums.intel.com/
> Intel Fortran Sup****t
> =A0 =A0http://sup****t.intel.com/sup****t/performancetools/fortran
> My Fortran blog
> =A0 =A0http://www.intel.com/software/drfortran
 




 17 Posts in Topic:
Derived Type Pointer Allocation Issue
Michael <mwpowellnm@[E  2008-04-30 14:05:06 
Re: Derived Type Pointer Allocation Issue
fj <francois.jacq@[EMA  2008-04-30 14:26:51 
Re: Derived Type Pointer Allocation Issue
Dick Hendrickson <dick  2008-04-30 21:40:38 
Re: Derived Type Pointer Allocation Issue
Michael <mwpowellnm@[E  2008-04-30 15:46:10 
Re: Derived Type Pointer Allocation Issue
nospam@[EMAIL PROTECTED]   2008-04-30 16:19:00 
Re: Derived Type Pointer Allocation Issue
Michael <mwpowellnm@[E  2008-04-30 16:25:12 
Re: Derived Type Pointer Allocation Issue
nospam@[EMAIL PROTECTED]   2008-04-30 16:38:24 
Re: Derived Type Pointer Allocation Issue
Steve Lionel <steve.li  2008-05-01 00:48:02 
Re: Derived Type Pointer Allocation Issue
Michael <mwpowellnm@[E  2008-04-30 16:27:59 
Re: Derived Type Pointer Allocation Issue
Michael <mwpowellnm@[E  2008-04-30 16:47:01 
Re: Derived Type Pointer Allocation Issue
Michael <mwpowellnm@[E  2008-05-01 08:15:12 
Re: Derived Type Pointer Allocation Issue
Michael <mwpowellnm@[E  2008-05-01 08:28:04 
Re: Derived Type Pointer Allocation Issue
Michael <mwpowellnm@[E  2008-05-01 09:03:30 
Re: Derived Type Pointer Allocation Issue
Steve Lionel <steve.li  2008-05-04 01:05:45 
Re: Derived Type Pointer Allocation Issue
Michael <mwpowellnm@[E  2008-05-01 12:48:23 
Re: Derived Type Pointer Allocation Issue
Dick Hendrickson <dick  2008-05-01 20:10:24 
Re: Derived Type Pointer Allocation Issue
Michael <mwpowellnm@[E  2008-05-01 14:08:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 8:45:49 CDT 2008.