Topic: Someone pls explain Fortran optimising

I have completed a major project.  During debugging, I had set optimising to none.  On completion, everything worked.

I then tried various optimising levels, and all of them caused malfunctions.  Specifically, I found some dynamic arrays were empty.

Can anyone help me understand this, please?
----
John

Re: Someone pls explain Fortran optimising

From experience, just because code "works" when compiled for debugging, doesn't mean it is always correct. In fact testing doesn't help you show correctness at all, it only shows when some code is incorrect.

You typically need to compile using optimised options as well and test as you go along.

What debugging options have you used? - there may be some more options you can add, which would help you debug this.

--
David