fortran compilation issue


 
Thread Tools Search this Thread
Operating Systems Linux fortran compilation issue
# 1  
Old 09-05-2011
fortran compilation issue

Hi,
I am getting following error when i try to compile :
Code:
Error: Expected variable in READ statement at (1)
      read(12,*) ((l1to2(l,j),j=1,2),l=1,ngl(2,4))

Also i am getting following error :
Code:
Error: Syntax error in COMMON statement at (1)

at some statements.

I am using mpif90 -f90=gfortran to compile the code. mpif90 is mpich2's mpif90 compiled with gfortran.

what can be the issue? What should i use?

Last edited by pludi; 09-06-2011 at 05:58 AM..
# 2  
Old 09-05-2011
You never dimensioned your 2d array. Here is a similar problem, which might be an example, too: problem with 2d arrays in ... - Intel® Software Network
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

FORTRAN p-norm

What would be an accurate and efficient computation of the p-norm in Fortran? Integer :: p Real :: sum, pn Do i = 1, Size (a) sum = sum + ((Abs a(i)) ** p) End Do pn = sum ** (1.0/ Real(p)) (0 Replies)
Discussion started by: kristinu
0 Replies

2. Programming

FORTRAN Extends

I am writing some code in fortran that defines certain shapes. Currently I have a cuboid and a prism. Now a parallelepiped is both a cuboid and a prism. Is there a way to code this? Currently I only have Type, Extends (Cuboid) :: Parallelepipied How can I do so that Parallelepipied is... (3 Replies)
Discussion started by: kristinu
3 Replies

3. UNIX for Dummies Questions & Answers

Kernel Compilation Issue

I have installed ubuntu 11.04 on my system. After this when I used to give uname -r it showed me kernel version as 2.6.38. Now I had downloaded kernel 2.6.34.12 from kernel.org and installed it using the following steps: make make modules make modules_install make install This created... (2 Replies)
Discussion started by: rupeshkp728
2 Replies

4. Homework & Coursework Questions

Fortran program issue

1. The problem statement, all variables and given/known data: I was given this program to work with that is supposed to work as it is. It comes with a makefile so all I should have to do is use the make command, then type ./blub to execute the program. A list of data should then appear in the... (3 Replies)
Discussion started by: Arjani
3 Replies

5. Linux

Fortran compile issue

I was given this program to work with and it was supposed to be simple for someone like me who knows nothing of Fortran or Unix. It comes with a makefile, so all I have to do is use the make command, then type ./blub to execute the program. A list of data should then appear in the fort.51 file. The... (1 Reply)
Discussion started by: Arjani
1 Replies

6. Programming

Fortran 77 and gfortran

Hi! I have a program in fortran77. This program was compiled with pgf90, but now, I need compiled it with gfortran. I show a bit of code. program hello PARAMETER(a=100) integer a write(*,*)'value ', a end program hello What's the problem? Thanks (2 Replies)
Discussion started by: kekaes
2 Replies

7. Red Hat

kernel compilation: ncurses issue

Hi, While trying to build the linux kernel - 2.6.24.2, i get the following error message during initial phase(make menuconfig) : scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or directory <=== In file included from scripts/kconfig/lxdialog/checklist.c:24: It seems... (1 Reply)
Discussion started by: amit4g
1 Replies

8. UNIX for Advanced & Expert Users

postfix compilation issue with make

Hi guys, I'm in trouble to do postfix compilation on a Solaris. SunOS 5.10 Generic_118833-33 sun4u sparc SUNW, Sun-Fire-V440 I'm trying to compile postfix-2.4.5 which make replay /usr/ccs/bin/make and it's in the profile When I launch make install clean it replies make: Fatal... (2 Replies)
Discussion started by: moustik
2 Replies

9. UNIX for Dummies Questions & Answers

Issue with makefile compilation

All, I am facing problem with one makefile compilation. The following is the error I am getting, Before proceeding to this I want to let you know all, only last week onwards I started working in solaris10, the same code is working in solaris 9. I dont know any link has to be created, or any path... (3 Replies)
Discussion started by: nsurendiran
3 Replies

10. Programming

Issue with Makefile compilation

All, I am facing problem with one makefile compilation. The following is the error I am getting <Code> /applns/ora10/rdbms/bin/proc sqlcheck=semantics userid=/ CHAR_MAP=VARCHAR2 DBMS=V7 DEFINE=UNIX DEFINE=SUN_SRC_COMPAT iname=mm5900.pc sh: /applns/ora10/rdbms/bin/proc: not found *** Error... (1 Reply)
Discussion started by: nsurendiran
1 Replies
Login or Register to Ask a Question