Dear All,
If I compile with the option -check bounds I get different results to when I compile without this option. But no errors come up on screen. How do I find out where the problem is?
UPDATE: I also get different results if I compile my code with and without the option debug. But again, no messages on screen - I don't have a clue where the problem is?
UPDATE: If I run my code using the two different approaches below, I end up with different results. But the only difference is that I'm passing the variable ncells (which is used to define array dimensions). I don't understand why different results are produced?
Approach 1
-------------------
program main
integer ncells
parameter (ncells=500)
CALL mbmodel(ncells)
end
subroutine mbmodel(ncells)
integer ncells
real var1(ncells,200,300),var2(ncells,200,300)
end
--------------------
Approach 2
-------------------
program main
CALL mbmodel
end
subroutine mbmodel
integer ncells
parameter(ncells=500)
real var1(ncells,200,300),var2(ncells,200,300)
end
---------------------------
Many Thanks!



