Fortran [Fortran] subroutine needs fixing

AI Thread Summary
The discussion focuses on troubleshooting a subroutine found online for a programming model. The user seeks guidance on error checking and debugging due to a lack of programming experience. Respondents emphasize the importance of understanding programming fundamentals, as debugging requires some knowledge of the code. They request specific syntax error messages to provide more targeted assistance. It is noted that the attached code includes an "include" statement for a file named "vaba_param.inc," which is essential for compilation. Additionally, the code is not designed for standalone compilation and requires integration into a main program to function correctly.
khalchris
Messages
1
Reaction score
0
I am trying to use this subroutine which I found online in my model but I am not experienced in programming and I need to know how can I check for errors or debug the code and try to find the mistakes or syntax errors , I have attached the code for your review

Thank you
 

Attachments

Technology news on Phys.org
It would help if you tell us the syntax error messages that you got, at least the first few of them.
 
I am always very hesitant to answer requests like this because I fear it will turn out into a never ending chain of help requests...you cannot be not-experience and do debugging, error checking and programming...you need to put the time to know what you are doing; otherwise, you will simply by the middle man between the program and the forum.

All I am going to say for now is that the source that you attached has an include statement which expects to find a file named "vaba_param.inc" ...so, you need to get a hold of that file, too, before you can compile the program.

Also, the file that you have attached is not meant to be compiled in a standalone fashion, nor will produce an executable program...you are supposed to put together your own main program where you assemble your problem and THEN call the subroutine in this file...
 
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...
What percentage of programmers have learned to touch type? Have you? Do you think it's important, not just for programming, but for more-than-casual computer users generally? ChatGPT didn't have much on it ("Research indicates that less than 20% of people can touch type fluently, with many relying on the hunt-and-peck method for typing ."). 'Hunt-and-peck method' made me smile. It added, "For programmers, touch typing is a valuable skill that can enhance speed, accuracy, and focus. While...
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
3
Views
2K
Replies
59
Views
11K
Replies
8
Views
4K
Replies
9
Views
4K
Replies
4
Views
2K
Replies
4
Views
2K
Replies
5
Views
8K
Replies
20
Views
3K
Back
Top