Silverfrost Forums

Welcome to our forums

help please

27 Aug 2013 4:13 #12937

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

28 Aug 2013 5:35 #12943

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

Please login to reply.