[Fortran] subroutine needs fixing

  • Context: Fortran 
  • Thread starter Thread starter khalchris
  • Start date Start date
  • Tags Tags
    Fortran Subroutine
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
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

Physics news on Phys.org
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...