Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Fortran move_alloc lower bound - must it be =1?

3714558May 24 2018 — edited Jun 5 2018

f90: Studio 12.5 Fortran 95 8.8 Linux_i386 2016/05/31

  real, allocatable :: a1(:),a2(:)
  allocate (a1(0:10))
  a1(0)=3
  call move_alloc(a1,a2)
  write(0,*)a2(0)
  write(0,*)lbound(a2)
  end

gives

0.0E+0

1

(same for 12.6).

Portland compiler gives "correct" answer.

I see on the web reference to gfortran,ifort assuming unity for lbound.

Is this true for Studio?

Is it buried in the Fortran 2003 standard?

Regards,

Nigel

Comments

843807
Depending on experience I suggest writting it by hand. This will take time but you should get familiar with swing. Having said that. Before you go out to buy JBuider ( expensive ), I suggest you go and download netbeans. Its a free IDE with GUI builder. This is a Sun based product and again its free. www.netbeans.org.

With this tool as with most java gui builders you can drop your own beans in. Both visible and invisible. So for example you have: MyTextbox extends JTextField you can add this to your component pallete. . meaning that you are able to drag and drop your own components into the frame.

There are some rules that you should adhear to. . When editting the code in netbeans the necessary generated code is non-editable. You can edit it in another editor, but it may not load and display properly the next time you look at the class in the GUI editor../ . Imagine this to be the same with most editors. Anywho, I've said to much already. . .have fun with this one
843807
Thank you for the information!,

So it sounds like you strongly recommend net beans over Forte For Java?
Is this true? I like Forte For Java but it seems to be slow.
843807
Interestingly, Forte for Java is based on the NetBeans IDE !!
Therefore, if you are of the idea to use NetBeans, you may as well continue using Forte itself..

Try initially to code by hand. That will help you build a strong foundation. Then u can go ahead with using a visual builder. As far as I am concerned, Forte is probably the best IDE for Java, If u r planning to buy, then go in for IBM Visual Age. It is equally good.

Also, if u r still bent on using JBuilder, u can download a free personal edition..

cheers
Ramanujam
1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 3 2018
Added on May 24 2018
2 comments
315 views