kubota
Electrical
- Oct 22, 2015
- 2
Hi all,
I'm in the process of converting a Fortran maths program of several hundred lines to Excel VBA. All is fine except for one line of the Fortran code. I haven't seen this code form before.
Here's the problem line of code, which I presume is intended to set the state of aa
I don't understand why aa is on the right side, separated by the .or. test. For example, it seems that aa could be set to the state of aa, which makes no sense to me. I'm clearly missing something here.
Any clarification would be much appreciated.
Thanks
I'm in the process of converting a Fortran maths program of several hundred lines to Excel VBA. All is fine except for one line of the Fortran code. I haven't seen this code form before.
Code:
! ...
logical aa
real ( kind = 8 ) bb
real ( kind = 8 ) cc
real ( kind = 8 ) dd
real ( kind = 8 ) ee
! ... numerous code lines go here
Here's the problem line of code, which I presume is intended to set the state of aa
Code:
aa = aa .or. ( bb < cc .and. dd < ee )
I don't understand why aa is on the right side, separated by the .or. test. For example, it seems that aa could be set to the state of aa, which makes no sense to me. I'm clearly missing something here.
Any clarification would be much appreciated.
Thanks