gfortran compiling problem,calling too many arguments


 
Thread Tools Search this Thread
Top Forums Programming gfortran compiling problem,calling too many arguments
# 1  
Old 01-16-2011
gfortran compiling problem,calling too many arguments

Hello,

My problem is with compiling a program modelling shallow water.

In it there is a subroutine called stat with 9 parameters.

In the main program it is called with 9 parameters also

I'm running Ubuntu 11.04 with gfortran version 4.5.

Thanks.

---------- Post updated at 11:57 PM ---------- Previous update was at 11:53 PM ----------

Oh and just to add the compiler output :
labshw.f:883.72:

call stat(npx,npy,grav,uinit,vinit,hinit,u,v,ho)
1
Error: Too many arguments in call to 'stat' at (1)

---------- Post updated 16-01-11 at 12:56 PM ---------- Previous update was 15-01-11 at 11:57 PM ----------

I solved the problem by installing Intel's free comipler Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

GFORTRAN library problem: libgFORTRAN.so.1 cannot open....

I've received some executable script for test, but executing this script continuously give me following message ./example: error while loading shared libraries: libgfortran.so.1: cannot open shared object file: No such file or directory Google search told me to do as following $... (1 Reply)
Discussion started by: exsonic
1 Replies

2. Shell Programming and Scripting

How to accept arguments in shell script when calling in perl

I have a shell script like this: #!/bin/sh $PYTHON MetarDecoder.py < ../data/mtrs/arg1/arg2 And I'm calling it with this in perl: my $output = `./metar_parse.sh --options`; It's successful when I put in actual values for arg1 and arg2 in the shell script, but I'd like to pass arguments... (1 Reply)
Discussion started by: civilsurfer
1 Replies

3. Programming

problem compiling with gfortran in two different debian releases

Hello, I hope this is the correct forum for this post. I have the following problem: A Fortran 77 program that has to deal with several large matrices (each approx. 5000 x 5000) and uses lapack and blas subroutines has been correctly compiled and executed using Debian Etch. When I tried... (1 Reply)
Discussion started by: currix
1 Replies

4. Programming

Compilation problem with gfortran

Hello everyone, I'm trying since a few days to compile a f90 program with gfortran (on Ubuntu) with a makefile. The fortran program calls 2 routines written in C. Here is my makefile: FC = gfortran SFC = gfortran FFLAGS = -ffree-form -O... (21 Replies)
Discussion started by: leroygr
21 Replies

5. Programming

gfortran compiling error: Expected a right parenthesis in expression at (1)

Hello, I am compiling a code with gfortran and get one error. I have not been successful in re-writing the line so that it will compile. Any suggestions for a re-written line? WRITE (IUNITITERV, 104) ((V(1,I),V(2,I)), I=1, NUMNOD) 1 Error:... (2 Replies)
Discussion started by: jm4smtddd
2 Replies

6. Shell Programming and Scripting

Calling a subroutine with arguments

Hello, I am having problem calling a subroutine with arguments, can any help? is the approach I am using correct? main() { # This is just a subset of the code #$b & $lnum is already define in this section of the code checkboard $b $lnum } checkboards() { ln=$lnum... (2 Replies)
Discussion started by: jermaine4ever
2 Replies

7. HP-UX

Problem in HP-UX compiling

Hi When im trying to do make --version and make --help in HP-UX it throws error Make: Unknown flag argument -. Stop. a soft link is present in this directory /usr/bin/make and hard link is in /usr/ccs/bin/make what could be the reason can any1 ..please tell me how to solve this... (1 Reply)
Discussion started by: vasanthan
1 Replies

8. Solaris

Problem in PowerDNS compiling

PowerDNS is true Power of Internet Name Management. http://www.powerdns.com Now, I compile it on my SunOS system (SunOS 5.8 Generic_117350-05 sun4u sparc SUNW,Ultra-5_10). ./configure -- no error make --> it has error: <i> make: Fatal error: Command failed for target... (0 Replies)
Discussion started by: secret4all
0 Replies

9. Solaris

Compiling problem

I'm trying to install the jed text editor on a SunOS 5.10 box. It depends on the s-lang library, which I installed to ~/lib. I'm trying to install jed to ~/jed (it's a box @ my university, so I don't have rights to install globally), but when I run make I get this error: It looks like it... (1 Reply)
Discussion started by: iandunn
1 Replies

10. Programming

Problem compiling metamail

Hi Guys. I have downloaded metamail from internet e Iīm trying to compile it at a SCO 5.0.5. In this server itīs working fine (letīs name it as mission1) iīm using the developer package in this server (mission1) and when I use mailto, i got the e-mail fine. Itīs forwarding to a exchange server... (2 Replies)
Discussion started by: ahnishimi
2 Replies
Login or Register to Ask a Question
Signature(3pm)						User Contributed Perl Documentation					    Signature(3pm)

NAME
perl5i::Signature - Representing what parameters a subroutine accepts SYNOPSIS
func hello( $greeting, $place ) { say "$greeting, $place" } my $code = &hello; my $signature = $code->signature; say $signature->num_positional_params; # 2 say $signature->is_method; # false DESCRIPTION
A Signature is a representation of what parameters a subroutine accepts. Each subroutine defined with "func" or "method" will have a signature associated with it. You can get at it by calling the "signature" method on the code reference. See "Signature Introspection" in perl5i for more details. Subroutines declared with Perl's built in "sub" will have no signature. METHODS
params my $params = $sig->params; An array ref of the parameters a subroutine takes in the order it takes them. Currently they are just strings. In the future they will be string overloaded objects. positional_params my $params = $sig->positional_params; Like "$sig->params" but it is just the positional parameters. In the future there will be named parameters. num_positional_params my $num_positional_params = $sig->num_positional_params; The number of named parameters the subroutine takes. In the future there will be named parameters. For the purposes of determining how many arguments a function takes, it is most useful to look just at the positional ones. This is mostly an optimization for "$sig->positional_params->size". as_string my $params = $sig->as_string; The original signature string. invocant my $invocant = $sig->invocant; The invocant is the object or class a method is called on. "invocant" will return the parameter which contains this, by default it is $self on a method, and nothing a regular subroutine. is_method my $is_method = $sig->is_method; Returns if the subroutine was declared as a method. OVERLOADING
Signature objects are string overloaded to return "as_string". They are also always true to avoid objects taking no parameters from being confused with subroutines with no signatures. perl v5.14.2 2012-06-14 Signature(3pm)