- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear members,
I have written code in a console application and it compiles and works, however when I try to compile the same code in a fortran windows application I am flooded with warnings. The code is a subroutine which calls several functions and the agruments that are passed to the functions include allocatable arrays. The return values of the functions are also arrays. The warnings that I am getting tell me that the 'actual argument does not match the type and kind of the corresponding dunmmy argument ' and that 'an explicit-shaped array is being passed to a routine that expects a pointer or assumed-shape array'. The form of the code is as follows:
subroutine GenData(num)
external function1
integer num
real, allocatable :: Array1(:), Array2(:)
allocate(Array1(num))
Array2 = function1(Array1, num)
end subroutine
Any suggestions as to the source of the warnings that I getting as well as how to remedy my problem would be greatly appreciated.
Regards
Chandrika
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

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