- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AUTOMATIC ::
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Note that AUTOMATIC is an extension to the language. I seem to recall that in some earlier version, the compiler did not accept AUTOMATIC and STATIC as attributes. You could say:
AUTOMATIC X
but not:
AUTOMATIC :: X
Both should work in current versions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your quick reply!In my windows version of compaq Fortran compiler, I define the subroutine variables as belows:
INTEGER ITMAX
REAL tol,x1,x2,func,EPS
EXTERNAL func
PARAMETER (ITMAX=30,EPS=3.e-8)
INTEGER iter
REAL a,b,c,d,e,fa,fb,fc,p,q,r,s,tol1,xm
AUTOMATIC
Now i have to use Intel Fortran compiler for Linux to run my model.
My ifort version is:
-bash-3.00$ ifort --version
ifort (IFORT) 9.0 20051201
Copyright ( C) 1985-2005 Intel Corporation. All rights reserved.
And I am using:
ifort -automatic -I/home/s0340767/lib/fnlux04dcl/lib/nag_mod_dir file1.f90 file2.f90 -L/home/s0340767/lib/fnlux04dcl/lib -lnagfl90 -lcrypt -lpthread
to compile.
Thanks in advance.
Rui
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It was a bug in CVF that the AUTOMATIC statement was allowed without any variables named. We fixed that bug in Intel Fortran. There is no defined meaning for just AUTOMATIC by itself.
If you want all local variables to be automatic, then use -automatic or add the RECURSIVE keyword to the routine declaration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Steve,
Thanks a lot for your kind help. The model is running ok on unix now.
Rui
![](/skins/images/D2683F18326913BBA0436CB7114DD569/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page