Fortran Fortran 95 question about dimension error

AI Thread Summary
Error 542 indicates that variables J and I are being used incorrectly in the code, as they are not recognized as dummy arguments, accessible variables, COMMON variables, PARAMETERS, or part of a PURE FUNCTION. The context involves using I and J to reference temperature in a numerical solution for the heat diffusion equation, specifically employing the Crank-Nicolson method, which relies on previous and next temperature values based on spatial and temporal dimensions. Troubleshooting the program is challenging without a complete code listing to analyze the variable usage and context further.
loukoumas
Messages
14
Reaction score
0
error 542, J appears in the dimension of a variable,yet is not a dummy argument,a variable available through USE or CONTAINS association,a COMMON variable,a PARAMETER,or a PURE FUNCTION
the same error about I
i am using i,j in order to point the temperature in length and time T(i,j)
it is a numerical solution for the heat diffusion equation that uses the previous and the next value according to length of temperature and the previous value of temperature according to time( Crank-Nicolson method)
 
Technology news on Phys.org
It's going to be hard to troubleshoot your program without a listing.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...

Similar threads

Replies
7
Views
3K
Replies
9
Views
2K
Replies
4
Views
16K
Replies
9
Views
5K
Replies
4
Views
2K
Replies
11
Views
12K
Replies
21
Views
3K
Replies
22
Views
5K
Back
Top