- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
function StError(DataArray)
implicit none
Type(typData),intent(in) :: DataArray(:)
Type(typData), dimension(Size(DataArray)) :: StError
implicit none
Type(typData),intent(in) :: DataArray(:)
Type(typData), dimension(Size(DataArray)) :: StError
.
.
.
end function
this works with other fortran compilers, but not in Intel Fortran Compiler. ThoughDataArrayhas a size of 4000rows, compiler isn't allocating StError. Is there any other way except classical allocate() way ?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You did not supply a complete program, but I'll take a guess based on what I saw when I tried making my own.
Because function stError returns an array (and because it has a deferred-shape array argument), an explicit interface is required. If you call it without a proper explicit interface, then the results are unpredictable.
Because function stError returns an array (and because it has a deferred-shape array argument), an explicit interface is required. If you call it without a proper explicit interface, then the results are unpredictable.

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