Dear all,
This is a question I was thinking for some time, and wanted to seek for your tips in doing Fortran programing.
My style is always just write all the parts of the whole big code, and then compile and run, and find bugs and kill bugs.
I know this is not a good habit. But, it seems in Fortran, if I want to check some subroutine/functions, I need to write some small drive code to test them. But I just too lazy to write drive code every time to check small parts of the code.
Also, I know my this style of writing code, may write code in several days, however may spend weeks to check bugs. It seems just not a very smart way.
I mean, I would rather spend two weeks to write a Fortran code and once it is finished it is already bug free, than spending one day write a code and then spend more than two weeks to check the bugs.
I also notice that, sometimes people say, they use python/Julia/matlab simply because it is easy for them to check small pieces of code on the fly. So overall, it saves them a lot of time. For them, spending less time in doing programing is more important than the speed/performance of the program itself. They say that Fortran may be faster, however, consider the amount of time devoted in writing a code, it is hard to say if it really worth it.
So I wonder, do you have easy ways in Fortran to check each pieces of code on the fly?
Do you have some advice or what is your workflow in write Fortran code?
Thank you very much indeed in advance!