A part of my.f90 file is shown below
read*, wl if (wl == 1) then write(*,*) 'blah blah...' wl = 1 elseif (wl == 2) then write(*,*) 'blah blah...' wl = 2 else write(*,*) 'blah blah...'
I would like to use this wl value in another f.90 file that has an equation.
I want to set it as a variable within the equation(ex. x = wl +2)
How can I use this value in another f.90 file?
Please help me step by step.
Thank you so much!
Have a great day!
For more complete information about compiler optimizations, see our Optimization Notice.