View previous topic :: View next topic |
Author |
Message |
yuvadon
Joined: 27 Aug 2013 Posts: 4
|
Posted: Tue Aug 27, 2013 5:13 pm Post subject: help please |
|
|
When I compiled the file i get error notification like this
main.F(20) : error 477 - The DIMENSION specification for variable X is not an explicit shape
for this line:
common/particle/ X(NDIM,MAXP), X0(NDIM,MAXP)
Hope u guys can help me...thank you |
|
Back to top |
|
 |
JohnCampbell
Joined: 16 Feb 2006 Posts: 2615 Location: Sydney
|
Posted: Wed Aug 28, 2013 6:35 am Post subject: |
|
|
I would check (for) the file 'parameter.f'
It should have something to define NDIM and MAXP; something like:
INTEGER, parameter :: NDIM = 3
INTEGER, parameter :: MAXP = 1000
Based on the error message, either parameter.f is missing or these definitions have been omitted.
It is difficult to tell from your posts, but you need to be aware there are two types of fortran code; fixed format or free format.
Fixed format requires code to be in columns 7 to 72, with continuation identified in column 6 of the continued line. Your listing appears to show this.
Free format is more flexible, with an & provided at the end of each line that is to be continued. Free format is typically limited to 132 columns 1-132.
John |
|
Back to top |
|
 |
|