Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Hailing frequencies open, Captain.


devel / comp.lang.fortran / Compilation error when i run analysis using the subroutine

SubjectAuthor
* Compilation error when i run analysis using the subroutineanubhav deep
+- Re: Compilation error when i run analysis using the subroutineGary Scott
`* Re: Compilation error when i run analysis using the subroutinegah4
 `- Re: Compilation error when i run analysis using the subroutinejfh

1
Compilation error when i run analysis using the subroutine

<256aeb0c-0e0e-4583-bae9-b10579c46a7fn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3354&group=comp.lang.fortran#3354

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:622a:1885:b0:3ef:1c64:a9ff with SMTP id v5-20020a05622a188500b003ef1c64a9ffmr4136577qtc.10.1682868270764;
Sun, 30 Apr 2023 08:24:30 -0700 (PDT)
X-Received: by 2002:a05:620a:152d:b0:74e:1090:8906 with SMTP id
n13-20020a05620a152d00b0074e10908906mr1964195qkk.0.1682868270533; Sun, 30 Apr
2023 08:24:30 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Sun, 30 Apr 2023 08:24:30 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=49.206.32.9; posting-account=_1pQOwoAAADVCTRdTNY73BecKNrsvkNS
NNTP-Posting-Host: 49.206.32.9
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <256aeb0c-0e0e-4583-bae9-b10579c46a7fn@googlegroups.com>
Subject: Compilation error when i run analysis using the subroutine
From: anubhavdeep42@gmail.com (anubhav deep)
Injection-Date: Sun, 30 Apr 2023 15:24:30 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1605
 by: anubhav deep - Sun, 30 Apr 2023 15:24 UTC

Hi Everyone,
I am compiling a code using FORTRAN 90.
When I make a call to the subroutine, I am getting compilation error.
Mostly syntax error.

Part where errors are occuring:
* nblock, ndim, stepTime, totalTime,
* amplitude, curCoords, velocity, dircos,
* jltyp, sname,
C Write only (modifiable) variable -
* value )
C
include 'vaba_param.inc'
dimension curCoords(nblock,ndim),
1 velocity(nblock,ndim),
2 dircos(nblock,ndim,ndim),
3 value(nblock)

Can't figure where is it going wrong.
Any help would be appreciated

Re: Compilation error when i run analysis using the subroutine

<u2m1qg$3inrg$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3355&group=comp.lang.fortran#3355

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: garylscott@sbcglobal.net (Gary Scott)
Newsgroups: comp.lang.fortran
Subject: Re: Compilation error when i run analysis using the subroutine
Date: Sun, 30 Apr 2023 10:34:41 -0500
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <u2m1qg$3inrg$1@dont-email.me>
References: <256aeb0c-0e0e-4583-bae9-b10579c46a7fn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 30 Apr 2023 15:34:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1f95e1196a15fe2fdd9b44a62e240c53";
logging-data="3759984"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bN4LETd+4HPyFK4ngqP5P9pIL31BPs3g="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.1
Cancel-Lock: sha1:A6TrZviTMtiYfqpHYLW/jOTta/g=
In-Reply-To: <256aeb0c-0e0e-4583-bae9-b10579c46a7fn@googlegroups.com>
Content-Language: en-US
 by: Gary Scott - Sun, 30 Apr 2023 15:34 UTC

On 4/30/2023 10:24 AM, anubhav deep wrote:
> Hi Everyone,
> I am compiling a code using FORTRAN 90.
> When I make a call to the subroutine, I am getting compilation error.
> Mostly syntax error.
>
> Part where errors are occuring:
> * nblock, ndim, stepTime, totalTime,
> * amplitude, curCoords, velocity, dircos,
> * jltyp, sname,
> C Write only (modifiable) variable -
> * value )
> C
> include 'vaba_param.inc'
> dimension curCoords(nblock,ndim),
> 1 velocity(nblock,ndim),
> 2 dircos(nblock,ndim,ndim),
> 3 value(nblock)
>
> Can't figure where is it going wrong.
> Any help would be appreciated
Appears to be a mixture of FORTRAN 77 syntax and compiler extensions.
In some compilers, * is a comment, in some its an error...depends on
which compiler you're using and what options you have selected. Suggest
switching fully to free form syntax. In free form syntax, you use an &
symbol at the end of a line to designate a continuation line and remove
the "1", "2", "3" from the continuation field in the following lines.

Re: Compilation error when i run analysis using the subroutine

<3a5b4e76-5432-448c-8580-853794426936n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3356&group=comp.lang.fortran#3356

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:622a:1809:b0:3ef:499a:dd97 with SMTP id t9-20020a05622a180900b003ef499add97mr3814753qtc.3.1682870832880;
Sun, 30 Apr 2023 09:07:12 -0700 (PDT)
X-Received: by 2002:ac8:5d8d:0:b0:3ef:3126:7dca with SMTP id
d13-20020ac85d8d000000b003ef31267dcamr4107734qtx.2.1682870832762; Sun, 30 Apr
2023 09:07:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Sun, 30 Apr 2023 09:07:12 -0700 (PDT)
In-Reply-To: <256aeb0c-0e0e-4583-bae9-b10579c46a7fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:948:cc2e:b377:2ef7;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:948:cc2e:b377:2ef7
References: <256aeb0c-0e0e-4583-bae9-b10579c46a7fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3a5b4e76-5432-448c-8580-853794426936n@googlegroups.com>
Subject: Re: Compilation error when i run analysis using the subroutine
From: gah4@u.washington.edu (gah4)
Injection-Date: Sun, 30 Apr 2023 16:07:12 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2222
 by: gah4 - Sun, 30 Apr 2023 16:07 UTC

On Sunday, April 30, 2023 at 8:24:32 AM UTC-7, anubhav deep wrote:
> Hi Everyone,
> I am compiling a code using FORTRAN 90.
> When I make a call to the subroutine, I am getting compilation error.
> Mostly syntax error.
>
> Part where errors are occuring:
> * nblock, ndim, stepTime, totalTime,
> * amplitude, curCoords, velocity, dircos,
> * jltyp, sname,
> C Write only (modifiable) variable -
> * value )
> C

Posting tends to lose all leading blanks, making it harder for us.

This seems to be fixed form, so, first, you need to be sure your compiler
is expecting fixed form. Many compilers expect fixed form for files
ending in .f, and free form for .f90, independent of the actual language
standard in use. You can write F2018 in fixed form with .f.

Those * and continuation numbers should be in column 6.

One looks like a continuation of a comment (starting with C),
which I think doesn't work.

Re: Compilation error when i run analysis using the subroutine

<a0924d9d-25ca-4188-b80a-f5e23900ce67n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3363&group=comp.lang.fortran#3363

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:158b:b0:74e:d92:8ce3 with SMTP id d11-20020a05620a158b00b0074e0d928ce3mr2546083qkk.14.1682977566459;
Mon, 01 May 2023 14:46:06 -0700 (PDT)
X-Received: by 2002:ad4:551c:0:b0:618:6001:29a7 with SMTP id
pz28-20020ad4551c000000b00618600129a7mr242736qvb.5.1682977566249; Mon, 01 May
2023 14:46:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Mon, 1 May 2023 14:46:05 -0700 (PDT)
In-Reply-To: <3a5b4e76-5432-448c-8580-853794426936n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=115.189.81.60; posting-account=KnYfEgoAAAD1tUJTvdAUZ3XojNa5tezZ
NNTP-Posting-Host: 115.189.81.60
References: <256aeb0c-0e0e-4583-bae9-b10579c46a7fn@googlegroups.com> <3a5b4e76-5432-448c-8580-853794426936n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a0924d9d-25ca-4188-b80a-f5e23900ce67n@googlegroups.com>
Subject: Re: Compilation error when i run analysis using the subroutine
From: harperjf2@gmail.com (jfh)
Injection-Date: Mon, 01 May 2023 21:46:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: jfh - Mon, 1 May 2023 21:46 UTC

On Monday, May 1, 2023 at 4:07:14 AM UTC+12, gah4 wrote:
> On Sunday, April 30, 2023 at 8:24:32 AM UTC-7, anubhav deep wrote:
> > Hi Everyone,
> > I am compiling a code using FORTRAN 90.
> > When I make a call to the subroutine, I am getting compilation error.
> > Mostly syntax error.
> >
> > Part where errors are occuring:
> > * nblock, ndim, stepTime, totalTime,
> > * amplitude, curCoords, velocity, dircos,
> > * jltyp, sname,
> > C Write only (modifiable) variable -
> > * value )
> > C
> Posting tends to lose all leading blanks, making it harder for us.
>
> This seems to be fixed form, so, first, you need to be sure your compiler
> is expecting fixed form. Many compilers expect fixed form for files
> ending in .f, and free form for .f90, independent of the actual language
> standard in use. You can write F2018 in fixed form with .f.
>
> Those * and continuation numbers should be in column 6.
>
> One looks like a continuation of a comment (starting with C),
> which I think doesn't work.
In fixed form * or C in column 1 both begin comments, but in column 6 they both begin continuation lines. That is true in every Fortran dialect from f77 onward but false in free source form in every dialect from f90 onward.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor