Hi,
I ran some code on intel visual fortran compiler
(Intel(R) Visual Fortran Compiler Integration for Microsoft Visual Studio* 2008, 11.1.3471.2008, Copyright (C) 2002-2010 Intel Corporation Microsoft Visual Studio 2008 Version 9.0.21022.8.RTM On the help page it said "Intel® Visual Fortran Compiler Professional Edition 11.1")
I got this error and warning.
error #7977: The type of the function reference does not match the type of the function definition
warning #6371: A jump into a block from outside the block may have occurred. [30]
When I checked the error, it involve the line that looked like
y=func(x)
where y, and x are real numbers and func is EXTERNAL function used in other subroutine. The function is defined like this.
real function func(x) use para implicit none real(prec),intent(in)::x
When is is declared EXTERNAL elsewhere, it is like this:
real(prec),external:: func
integer,parameter :: prec=selected_real_kind(15,307)
This code I ran is said to be able to be compiled in ABSOFT PRO-FORTRAN 9.0 compiler with the following compilation options:
Target Type: Console Application
Warning Level: Level 3
Error Handling: Stop after 100
Max Internal Handle: 100000
Temporary String Size: 1024
Cache Optimizations: CACHE
Stack Size (Reserve): 0x10000000
Stack Size (Commit): 0x8000
Heap Size (Reserve): 0x100000
Heap Size (Commit): 0x1000
I am not sure what I need to change in my compiler so that it would be able to run this code properly.
Thank you very much !