Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > compile errors,...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 8151 of 8551
Post > Topic >>

compile errors, please help.

by beet <whhggg@[EMAIL PROTECTED] > Apr 18, 2008 at 07:34 AM

Hi all,

I am compiling a fortran program. The g77 gave me some errors or
warnings like following...
----------------------------------------------------------------------
pvar.for:317:
          DEALLOCATE(IA,RA)
          ^
Invalid declaration of or reference to symbol `deallocate' at (^)
[initially seen at (^)]
pvar.for:317:
          DEALLOCATE(IA,RA)
                           ^
Invalid form for assignment statement at (^)
pvar.for: In subroutine `pvar':
pvar.for:97: warning:
         CALL PVAR(NF,NA,NB,NC,X,IA,RA,RA,RA,IA,RA,RA,RA,IA,RA,RA,RA,
              1
pvar.for:419: (continued):
         SUBROUTINE
PVAR(NF,NA,NB,NC,X,IX,XL,XU,CF,IC,CL,CU,CG,ICA,CFD,CR,
                    2
Argument #7 (named `xl') of `pvar' is one type at (2) but is some
other type at (1) [info -f g77 M GLOBALS]
pvar.for:97: warning:
         CALL PVAR(NF,NA,NB,NC,X,IA,RA,RA,RA,IA,RA,RA,RA,IA,RA,RA,RA,
                    1
------------------------------------------------------------------------
Errors for almost all arguments.
I have checked the arguments; they are all match.
This code was copied from internet.
Completely a newbie in Fortran.
Thanks...

------------------------some part of relevent code----------------
DOUBLE PRECISION RA(:)
....
ALLOCATABLE RA
IF (NA.LE.0) NA = NF + 3
ALLOCATE (RA(NF*(NF+13)/2+2*NA*(NF+2)))
NC = 0
....

    311       CALL
PVAR(NF,NA,NB,NC,X,IX,XL,XU,CF,IC,CL,CU,CG,IA,RA(LCFD),
    312      +
RA(LCR),RA(LCZ),RA(LAF),RA(LAX),RA(LAG),RA(LG),RA(LGN),
    313      +
RA(LH),RA(LS),RA(LSN),RA(LXO),RA(LGO),RA(LGP),RA(LGS),
    314      +
RPAR(1),RPAR(2),RPAR(3),RPAR(4),RPAR(5),RPAR(6),GMAX,
    315      +
F,IPAR(1),IPAR(2),IPAR(3),IPAR(4),IPAR(5),IPRNT,ITERM)
....
    419       SUBROUTINE
PVAR(NF,NA,NB,NC,X,IX,XL,XU,CF,IC,CL,CU,CG,ICA,CFD,CR,
    420      +
CZ,AF,AX,AG,G,GN,H,S,SN,XO,GO,GP,GS,XMAX,TOLX,
    421      +
TOLF,TOLB,TOLG,ETA,GMAX,F,MIT,MFV,MEX,MTESX,
    422      +                MTESF,IPRNT,ITERM)
---------------------------------end of
code------------------------------------------------------------

Thanks very much.

Beet
 




 4 Posts in Topic:
compile errors, please help.
beet <whhggg@[EMAIL PR  2008-04-18 07:34:08 
Re: compile errors, please help.
Tim Prince <tprince@[E  2008-04-18 14:41:36 
Re: compile errors, please help.
Gordon Sande <g.sande@  2008-04-18 14:43:05 
Re: compile errors, please help.
rudra <bnrj.rudra@[EMA  2008-04-20 04:49:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 22:40:13 CDT 2008.