Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

A man is not complete until he is married -- then he is finished.


devel / comp.lang.fortran / The function result on the lhs of the assignment at (1) must have the pointer attribute

SubjectAuthor
* The function result on the lhs of the assignment at (1) must have theFarzad Tatar
+- Re: The function result on the lhs of the assignment at (1) must haveArjen Markus
+* Re: The function result on the lhs of the assignment at (1) must havegah4
|`* Re: The function result on the lhs of the assignment at (1) must haveFarzad Tatar
| +- Re: The function result on the lhs of the assignment at (1) must haveFarzad Tatar
| `- Re: The function result on the lhs of the assignment at (1) must havegah4
`* Re: The function result on the lhs of the assignment at (1) must havegah4
 `* Re: The function result on the lhs of the assignment at (1) must haveFarzad Tatar
  `* Re: The function result on the lhs of the assignment at (1) must haveEdmondo Giovannozzi
   +* Re: The function result on the lhs of the assignment at (1) must haveFarzad Tatar
   |`- Re: The function result on the lhs of the assignment at (1) must havegah4
   `- Re: The function result on the lhs of the assignment at (1) must haveGary Scott

1
The function result on the lhs of the assignment at (1) must have the pointer attribute

<23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ad4:59cf:0:b0:625:bb4f:42cf with SMTP id el15-20020ad459cf000000b00625bb4f42cfmr1380003qvb.6.1685356380432;
Mon, 29 May 2023 03:33:00 -0700 (PDT)
X-Received: by 2002:ac8:6f0c:0:b0:3f4:e662:3fa8 with SMTP id
bs12-20020ac86f0c000000b003f4e6623fa8mr1146733qtb.4.1685356380138; Mon, 29
May 2023 03:33:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.neodome.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!peer01.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: Mon, 29 May 2023 03:32:59 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=160.78.21.148; posting-account=hxOrswoAAAA-EZ0m91Ex-Pg6IGNqw1Kv
NNTP-Posting-Host: 160.78.21.148
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com>
Subject: The function result on the lhs of the assignment at (1) must have the
pointer attribute
From: tatarfarzad1992@gmail.com (Farzad Tatar)
Injection-Date: Mon, 29 May 2023 10:33:00 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1792
 by: Farzad Tatar - Mon, 29 May 2023 10:32 UTC

Dear All,
I am trying to run a code written in fixed form. There are four main cases and one COMMON.H code for connecting all of them together. I am trying to run at least one of the codes. However, I have received many errors saying "The function result on the lhs of the assignment at (1) must have the pointer attribute". I tried to google it but there were not enough links. Can you give me some hints, please?
(I am new to Fortran)
Also, I like to rewrite the codes in free form Fortran by changing the structure of the codes. Do you have some suggestions?

Regards,

Farzad

Re: The function result on the lhs of the assignment at (1) must have the pointer attribute

<718d41fa-02cd-4c5c-b70a-e5589cd8f53an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:4450:b0:75b:153a:153 with SMTP id w16-20020a05620a445000b0075b153a0153mr1726036qkp.1.1685375267679;
Mon, 29 May 2023 08:47:47 -0700 (PDT)
X-Received: by 2002:ac8:5a8e:0:b0:3f6:83f0:c56a with SMTP id
c14-20020ac85a8e000000b003f683f0c56amr2658100qtc.6.1685375267419; Mon, 29 May
2023 08:47:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Mon, 29 May 2023 08:47:47 -0700 (PDT)
In-Reply-To: <23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=62.194.189.128; posting-account=A91wAAoAAADgBUxBX6QqsrSD26GLhVp8
NNTP-Posting-Host: 62.194.189.128
References: <23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <718d41fa-02cd-4c5c-b70a-e5589cd8f53an@googlegroups.com>
Subject: Re: The function result on the lhs of the assignment at (1) must have
the pointer attribute
From: arjen.markus895@gmail.com (Arjen Markus)
Injection-Date: Mon, 29 May 2023 15:47:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 26
X-Received-Bytes: 2438
 by: Arjen Markus - Mon, 29 May 2023 15:47 UTC

On Monday, May 29, 2023 at 12:33:02 PM UTC+2, Farzad Tatar wrote:
> Dear All,
> I am trying to run a code written in fixed form. There are four main cases and one COMMON.H code for connecting all of them together. I am trying to run at least one of the codes. However, I have received many errors saying "The function result on the lhs of the assignment at (1) must have the pointer attribute". I tried to google it but there were not enough links. Can you give me some hints, please?
> (I am new to Fortran)
> Also, I like to rewrite the codes in free form Fortran by changing the structure of the codes. Do you have some suggestions?
>
> Regards,
>
> Farzad

You should show code that exhibits the problem you encountered. The description leaves too much to be guessed.

As for fixed form versus free form, there are many online resources that can help you with that. Here is a page that might be useful: https://fortranwiki.org/fortran/show/Tools. This is one result of a Google search "fortran convert fixed format to free format".

Regards,

Arjen

Re: The function result on the lhs of the assignment at (1) must have the pointer attribute

<a2d1f8c4-2b0d-4da1-8439-ed7cdef2d8d3n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:24c8:b0:75b:d836:19c8 with SMTP id m8-20020a05620a24c800b0075bd83619c8mr355065qkn.3.1685439127955;
Tue, 30 May 2023 02:32:07 -0700 (PDT)
X-Received: by 2002:a05:620a:444f:b0:75b:1d79:6fdc with SMTP id
w15-20020a05620a444f00b0075b1d796fdcmr371448qkp.12.1685439127790; Tue, 30 May
2023 02:32:07 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Tue, 30 May 2023 02:32:07 -0700 (PDT)
In-Reply-To: <23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:d805:4781:76a:56c0;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:d805:4781:76a:56c0
References: <23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a2d1f8c4-2b0d-4da1-8439-ed7cdef2d8d3n@googlegroups.com>
Subject: Re: The function result on the lhs of the assignment at (1) must have
the pointer attribute
From: gah4@u.washington.edu (gah4)
Injection-Date: Tue, 30 May 2023 09:32:07 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 18
 by: gah4 - Tue, 30 May 2023 09:32 UTC

On Monday, May 29, 2023 at 3:33:02 AM UTC-7, Farzad Tatar wrote:
> Dear All,
> I am trying to run a code written in fixed form. There are four main cases and one COMMON.H code for connecting all of them together. I am trying to run at least one of the codes. However, I have received many errors saying "The function result on the lhs of the assignment at (1) must have the pointer attribute". I tried to google it but there were not enough links. Can you give me some hints, please?
> (I am new to Fortran)

The biggest mistake that causes this problem is forgetting to dimension arrays.

A function reference looks much like an array reference, except not being declared an array.

> Also, I like to rewrite the codes in free form Fortran by changing the structure of the codes. Do you have some suggestions?

Re: The function result on the lhs of the assignment at (1) must have the pointer attribute

<d6957ca7-c88b-4995-9563-990a7dd4a9cbn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ad4:5a04:0:b0:635:e1a0:255f with SMTP id ei4-20020ad45a04000000b00635e1a0255fmr95220qvb.7.1687777694304;
Mon, 26 Jun 2023 04:08:14 -0700 (PDT)
X-Received: by 2002:a05:622a:5cb:b0:400:a7a3:2261 with SMTP id
d11-20020a05622a05cb00b00400a7a32261mr352451qtb.8.1687777694046; Mon, 26 Jun
2023 04:08:14 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.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: Mon, 26 Jun 2023 04:08:13 -0700 (PDT)
In-Reply-To: <a2d1f8c4-2b0d-4da1-8439-ed7cdef2d8d3n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=160.78.21.148; posting-account=hxOrswoAAAA-EZ0m91Ex-Pg6IGNqw1Kv
NNTP-Posting-Host: 160.78.21.148
References: <23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com> <a2d1f8c4-2b0d-4da1-8439-ed7cdef2d8d3n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d6957ca7-c88b-4995-9563-990a7dd4a9cbn@googlegroups.com>
Subject: Re: The function result on the lhs of the assignment at (1) must have
the pointer attribute
From: tatarfarzad1992@gmail.com (Farzad Tatar)
Injection-Date: Mon, 26 Jun 2023 11:08:14 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1697
 by: Farzad Tatar - Mon, 26 Jun 2023 11:08 UTC

On Tuesday, May 30, 2023 at 11:32:09 AM UTC+2, gah4 wrote:
> On Monday, May 29, 2023 at 3:33:02 AM UTC-7, Farzad Tatar wrote:
Thank you for the information. Regarding the code converters, they all have issues with conversions. They delete many parts of the fixed form code (maybe ignore some lines).

Thank you for the other explanations anyway.

Best regards,

Farzad

Re: The function result on the lhs of the assignment at (1) must have the pointer attribute

<34ceebe2-78c3-4f2a-9bf6-d9e549e640d7n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:27d6:b0:767:14d4:bda0 with SMTP id i22-20020a05620a27d600b0076714d4bda0mr67060qkp.2.1688376013626;
Mon, 03 Jul 2023 02:20:13 -0700 (PDT)
X-Received: by 2002:a63:d145:0:b0:553:ec49:f310 with SMTP id
c5-20020a63d145000000b00553ec49f310mr5497409pgj.3.1688376012976; Mon, 03 Jul
2023 02:20: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: Mon, 3 Jul 2023 02:20:12 -0700 (PDT)
In-Reply-To: <d6957ca7-c88b-4995-9563-990a7dd4a9cbn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=160.78.21.132; posting-account=hxOrswoAAAA-EZ0m91Ex-Pg6IGNqw1Kv
NNTP-Posting-Host: 160.78.21.132
References: <23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com>
<a2d1f8c4-2b0d-4da1-8439-ed7cdef2d8d3n@googlegroups.com> <d6957ca7-c88b-4995-9563-990a7dd4a9cbn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <34ceebe2-78c3-4f2a-9bf6-d9e549e640d7n@googlegroups.com>
Subject: Re: The function result on the lhs of the assignment at (1) must have
the pointer attribute
From: tatarfarzad1992@gmail.com (Farzad Tatar)
Injection-Date: Mon, 03 Jul 2023 09:20:13 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1837
 by: Farzad Tatar - Mon, 3 Jul 2023 09:20 UTC

Hi All,
Just to make it useful for future users- if there would be anyone who still uses this version- regarding the error, I compiled it with Fortran Powerstation4 and it worked. I think that gfortran requires a new format or more information when defining arrays. Since I am temporarily using and modifying the already written code, I decided to postpone updating the code to a later time. Anyways, thank you all again for your helpful information.

Regards,

Farzad

Re: The function result on the lhs of the assignment at (1) must have the pointer attribute

<b6f44bfe-a30c-43a7-94c9-6196901d48a2n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:622a:28f:b0:400:a659:2e1f with SMTP id z15-20020a05622a028f00b00400a6592e1fmr48418qtw.13.1688564327368;
Wed, 05 Jul 2023 06:38:47 -0700 (PDT)
X-Received: by 2002:a63:2a0e:0:b0:553:823e:9156 with SMTP id
q14-20020a632a0e000000b00553823e9156mr8477770pgq.10.1688564326898; Wed, 05
Jul 2023 06:38:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.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: Wed, 5 Jul 2023 06:38:46 -0700 (PDT)
In-Reply-To: <23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:bdf6:e906:a7b8:52e0;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:bdf6:e906:a7b8:52e0
References: <23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b6f44bfe-a30c-43a7-94c9-6196901d48a2n@googlegroups.com>
Subject: Re: The function result on the lhs of the assignment at (1) must have
the pointer attribute
From: gah4@u.washington.edu (gah4)
Injection-Date: Wed, 05 Jul 2023 13:38:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2015
 by: gah4 - Wed, 5 Jul 2023 13:38 UTC

On Monday, May 29, 2023 at 3:33:02 AM UTC-7, Farzad Tatar wrote:

(snip)

> Also, I like to rewrite the codes in free form Fortran by changing
> the structure of the codes. Do you have some suggestions?
Fixed form is still legal in the most recent standard that I know about.

Also, everything should work exactly the same way.

The main complication with fixed to free form conversion, is that
blanks are not significant in fixed form. You can smash things
together, or space them out with extra space.

But since almost no-one does that, it should be possible to
convert mostly ignoring that.

There are some programs written by other programs that are
generated without any blanks, though.

Re: The function result on the lhs of the assignment at (1) must have the pointer attribute

<043bbd54-e2f8-4dbe-aa90-661a8573b5dbn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:4148:b0:763:9d5b:a310 with SMTP id k8-20020a05620a414800b007639d5ba310mr4339qko.8.1688652794316;
Thu, 06 Jul 2023 07:13:14 -0700 (PDT)
X-Received: by 2002:a05:6a00:1827:b0:682:cd09:3472 with SMTP id
y39-20020a056a00182700b00682cd093472mr1864630pfa.5.1688652793671; Thu, 06 Jul
2023 07:13:13 -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: Thu, 6 Jul 2023 07:13:12 -0700 (PDT)
In-Reply-To: <b6f44bfe-a30c-43a7-94c9-6196901d48a2n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=160.78.21.135; posting-account=hxOrswoAAAA-EZ0m91Ex-Pg6IGNqw1Kv
NNTP-Posting-Host: 160.78.21.135
References: <23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com> <b6f44bfe-a30c-43a7-94c9-6196901d48a2n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <043bbd54-e2f8-4dbe-aa90-661a8573b5dbn@googlegroups.com>
Subject: Re: The function result on the lhs of the assignment at (1) must have
the pointer attribute
From: tatarfarzad1992@gmail.com (Farzad Tatar)
Injection-Date: Thu, 06 Jul 2023 14:13:14 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2301
 by: Farzad Tatar - Thu, 6 Jul 2023 14:13 UTC

> Fixed form is still legal in the most recent standard that I know about.
>
> Also, everything should work exactly the same way.
>
> The main complication with fixed to free form conversion, is that
> blanks are not significant in fixed form. You can smash things
> together, or space them out with extra space.
>
> But since almost no-one does that, it should be possible to
> convert mostly ignoring that.
>
> There are some programs written by other programs that are
> generated without any blanks, though.

Thank you for the explanation. I am dealing with fixed form because the finite element code for the problems is written in this way--and I want to add something to it. Therefore, seeking to accelerate the process and skipping writing a generic FE code, I asked this question. Anyway, I am dealing with the algorithm behind the code, which is more important than coding itself --as an engineer.

Cheers,

Farzad Tatar

Re: The function result on the lhs of the assignment at (1) must have the pointer attribute

<c1efe039-bd53-47a9-9326-a5845c3a17b2n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:622a:18a7:b0:3f9:aa64:7dbf with SMTP id v39-20020a05622a18a700b003f9aa647dbfmr12154qtc.4.1688654443722;
Thu, 06 Jul 2023 07:40:43 -0700 (PDT)
X-Received: by 2002:a63:9d8b:0:b0:530:866d:cd15 with SMTP id
i133-20020a639d8b000000b00530866dcd15mr1101740pgd.12.1688654443126; Thu, 06
Jul 2023 07:40:43 -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: Thu, 6 Jul 2023 07:40:42 -0700 (PDT)
In-Reply-To: <043bbd54-e2f8-4dbe-aa90-661a8573b5dbn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=93.67.88.71; posting-account=2VbiMAoAAADZ_2MR3YxvYmpYWYw9FTXX
NNTP-Posting-Host: 93.67.88.71
References: <23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com>
<b6f44bfe-a30c-43a7-94c9-6196901d48a2n@googlegroups.com> <043bbd54-e2f8-4dbe-aa90-661a8573b5dbn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c1efe039-bd53-47a9-9326-a5845c3a17b2n@googlegroups.com>
Subject: Re: The function result on the lhs of the assignment at (1) must have
the pointer attribute
From: edmondo.giovannozzi@gmail.com (Edmondo Giovannozzi)
Injection-Date: Thu, 06 Jul 2023 14:40:43 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3037
 by: Edmondo Giovannozzi - Thu, 6 Jul 2023 14:40 UTC

Il giorno giovedì 6 luglio 2023 alle 16:13:16 UTC+2 Farzad Tatar ha scritto:
> > Fixed form is still legal in the most recent standard that I know about..
> >
> > Also, everything should work exactly the same way.
> >
> > The main complication with fixed to free form conversion, is that
> > blanks are not significant in fixed form. You can smash things
> > together, or space them out with extra space.
> >
> > But since almost no-one does that, it should be possible to
> > convert mostly ignoring that.
> >
> > There are some programs written by other programs that are
> > generated without any blanks, though.
> Thank you for the explanation. I am dealing with fixed form because the finite element code for the problems is written in this way--and I want to add something to it. Therefore, seeking to accelerate the process and skipping writing a generic FE code, I asked this question. Anyway, I am dealing with the algorithm behind the code, which is more important than coding itself --as an engineer.
>
> Cheers,
>
> Farzad Tatar
And you can write in a way that your source is compatible with fixed and free form.

Comment a line with a "!" on the first column.
As a continuation character use an "&" on the sixth column (on the continued line as in fixed form) and put a "&" after the 73th column in the first part of the continued line (like in the free form), it will be taken as a comment in fixed form unless you are using a compiler option that increase the length of a line beyond the 73th column (or it was the 72th column, I cannot remember).

Re: The function result on the lhs of the assignment at (1) must have the pointer attribute

<982e7e6a-77f9-4d97-95de-8b5ad16ff3ean@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:17a5:b0:765:a9f8:959b with SMTP id ay37-20020a05620a17a500b00765a9f8959bmr5701qkb.13.1688656729435;
Thu, 06 Jul 2023 08:18:49 -0700 (PDT)
X-Received: by 2002:a63:fc5c:0:b0:543:9759:1952 with SMTP id
r28-20020a63fc5c000000b0054397591952mr1151427pgk.11.1688656728869; Thu, 06
Jul 2023 08:18:48 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!newsfeed.hasname.com!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: Thu, 6 Jul 2023 08:18:48 -0700 (PDT)
In-Reply-To: <c1efe039-bd53-47a9-9326-a5845c3a17b2n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=160.78.21.135; posting-account=hxOrswoAAAA-EZ0m91Ex-Pg6IGNqw1Kv
NNTP-Posting-Host: 160.78.21.135
References: <23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com>
<b6f44bfe-a30c-43a7-94c9-6196901d48a2n@googlegroups.com> <043bbd54-e2f8-4dbe-aa90-661a8573b5dbn@googlegroups.com>
<c1efe039-bd53-47a9-9326-a5845c3a17b2n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <982e7e6a-77f9-4d97-95de-8b5ad16ff3ean@googlegroups.com>
Subject: Re: The function result on the lhs of the assignment at (1) must have
the pointer attribute
From: tatarfarzad1992@gmail.com (Farzad Tatar)
Injection-Date: Thu, 06 Jul 2023 15:18:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2497
 by: Farzad Tatar - Thu, 6 Jul 2023 15:18 UTC

> And you can write in a way that your source is compatible with fixed and free form.
>
> Comment a line with a "!" on the first column.
> As a continuation character use an "&" on the sixth column (on the continued line as in fixed form) and put a "&" after the 73th column in the first part of the continued line (like in the free form), it will be taken as a comment in fixed form unless you are using a compiler option that increase the length of a line beyond the 73th column (or it was the 72th column, I cannot remember).

Thank you for the hints. However, the code was 6500, and doing all of these will take time. Also, the code is written in an Implicit way. I am using the code without new problems. However, it took some weeks for me to capture the intrinsic function and the whole structure of the program. I will rewrite it in a more updated version, but I need to do it by hand because the converter scripts clear parts of the code that should be cleared. I will appreciate it if you had a better solution. 

Re: The function result on the lhs of the assignment at (1) must have the pointer attribute

<6d23d6d8-c284-4a01-b5bb-0758b515cc9bn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:45a8:b0:765:94ad:379d with SMTP id bp40-20020a05620a45a800b0076594ad379dmr7177qkb.6.1688675778294;
Thu, 06 Jul 2023 13:36:18 -0700 (PDT)
X-Received: by 2002:a63:6d03:0:b0:55b:bc6e:543 with SMTP id
i3-20020a636d03000000b0055bbc6e0543mr1785268pgc.3.1688675777777; Thu, 06 Jul
2023 13:36:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!newsfeed.hasname.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.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: Thu, 6 Jul 2023 13:36:17 -0700 (PDT)
In-Reply-To: <982e7e6a-77f9-4d97-95de-8b5ad16ff3ean@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:1856:5820:a91e:2d64;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:1856:5820:a91e:2d64
References: <23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com>
<b6f44bfe-a30c-43a7-94c9-6196901d48a2n@googlegroups.com> <043bbd54-e2f8-4dbe-aa90-661a8573b5dbn@googlegroups.com>
<c1efe039-bd53-47a9-9326-a5845c3a17b2n@googlegroups.com> <982e7e6a-77f9-4d97-95de-8b5ad16ff3ean@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6d23d6d8-c284-4a01-b5bb-0758b515cc9bn@googlegroups.com>
Subject: Re: The function result on the lhs of the assignment at (1) must have
the pointer attribute
From: gah4@u.washington.edu (gah4)
Injection-Date: Thu, 06 Jul 2023 20:36:18 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3234
 by: gah4 - Thu, 6 Jul 2023 20:36 UTC

On Thursday, July 6, 2023 at 8:18:51 AM UTC-7, Farzad Tatar wrote:
> > And you can write in a way that your source is compatible with fixed and free form.
> > Comment a line with a "!" on the first column.
> > As a continuation character use an "&" on the sixth column (on the continued line as in fixed form)
> > and put a "&" after the 73th column in the first part of the continued line (like in the free form),
> > it will be taken as a comment in fixed form unless you are using a compiler option that increase
> > the length of a line beyond the 73th column (or it was the 72th column, I cannot remember).

> Thank you for the hints. However, the code was 6500, and doing all of these will take time.

It should be very easy to write a program to do the above.

As I noted, though, that only works if the program uses blanks in a way that satisfies free form.

Youcan'twriteeverythingtogetherwithoutblanks!

An dyo uca n'tad dthe minot therpla ces.

There are conversion programs designed to work with such code, but they are always
behind in the version of the standard that they support.

But pretty much no-one writes programs that way!

Well.

Some years ago, I was working with the MORTRAN 2 processor. It is written in standard
Fortran 66, with minimal extensions. That is, that you can assign and compare data read
in A format. (Yes, the standard doesn't allow for that.)

As well as I remember it, the program itself, and its output, has no extra blanks.
And even a comment something like:

"This program was written by another program. It is not meant to be understood by humans."

(Probably all upper case, though.)

Re: The function result on the lhs of the assignment at (1) must have the pointer attribute

<u87ddo$11uv0$1@dont-email.me>

  copy mid

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

  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: The function result on the lhs of the assignment at (1) must have
the pointer attribute
Date: Thu, 6 Jul 2023 16:58:16 -0500
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <u87ddo$11uv0$1@dont-email.me>
References: <23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com>
<b6f44bfe-a30c-43a7-94c9-6196901d48a2n@googlegroups.com>
<043bbd54-e2f8-4dbe-aa90-661a8573b5dbn@googlegroups.com>
<c1efe039-bd53-47a9-9326-a5845c3a17b2n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 6 Jul 2023 21:58:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="146d7c9996599e943b7e70e1bb73262a";
logging-data="1113056"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+uQov3NcKDPp9sxBxX5dNC0R+X8ix6u48="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:Z1gSbgc9nkO8e+zI6DZ6UqWoRdA=
Content-Language: en-US
In-Reply-To: <c1efe039-bd53-47a9-9326-a5845c3a17b2n@googlegroups.com>
 by: Gary Scott - Thu, 6 Jul 2023 21:58 UTC

On 7/6/2023 9:40 AM, Edmondo Giovannozzi wrote:
> Il giorno giovedì 6 luglio 2023 alle 16:13:16 UTC+2 Farzad Tatar ha scritto:
>>> Fixed form is still legal in the most recent standard that I know about.
>>>
>>> Also, everything should work exactly the same way.
>>>
>>> The main complication with fixed to free form conversion, is that
>>> blanks are not significant in fixed form. You can smash things
>>> together, or space them out with extra space.
>>>
>>> But since almost no-one does that, it should be possible to
>>> convert mostly ignoring that.
>>>
>>> There are some programs written by other programs that are
>>> generated without any blanks, though.
>> Thank you for the explanation. I am dealing with fixed form because the finite element code for the problems is written in this way--and I want to add something to it. Therefore, seeking to accelerate the process and skipping writing a generic FE code, I asked this question. Anyway, I am dealing with the algorithm behind the code, which is more important than coding itself --as an engineer.
>>
>> Cheers,
>>
>> Farzad Tatar
> And you can write in a way that your source is compatible with fixed and free form.
>
> Comment a line with a "!" on the first column.
> As a continuation character use an "&" on the sixth column (on the continued line as in fixed form) and put a "&" after the 73th column in the first part of the continued line (like in the free form), it will be taken as a comment in fixed form unless you are using a compiler option that increase the length of a line beyond the 73th column (or it was the 72th column, I cannot remember).
>
Some systems use position 73-80 for line numbers so any content would be
wiped out.

Re: The function result on the lhs of the assignment at (1) must have the pointer attribute

<ac8e4438-adf2-4b35-a815-664430a42d20n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:6214:b90:b0:635:dabe:98 with SMTP id fe16-20020a0562140b9000b00635dabe0098mr9512qvb.4.1688687539331;
Thu, 06 Jul 2023 16:52:19 -0700 (PDT)
X-Received: by 2002:a63:8bca:0:b0:542:c9ed:b with SMTP id j193-20020a638bca000000b00542c9ed000bmr2165000pge.7.1688687538814;
Thu, 06 Jul 2023 16:52:18 -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: Thu, 6 Jul 2023 16:52:18 -0700 (PDT)
In-Reply-To: <d6957ca7-c88b-4995-9563-990a7dd4a9cbn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:1856:5820:a91e:2d64;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:1856:5820:a91e:2d64
References: <23dfa638-628e-43ab-be24-de07afce50b4n@googlegroups.com>
<a2d1f8c4-2b0d-4da1-8439-ed7cdef2d8d3n@googlegroups.com> <d6957ca7-c88b-4995-9563-990a7dd4a9cbn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ac8e4438-adf2-4b35-a815-664430a42d20n@googlegroups.com>
Subject: Re: The function result on the lhs of the assignment at (1) must have
the pointer attribute
From: gah4@u.washington.edu (gah4)
Injection-Date: Thu, 06 Jul 2023 23:52:19 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2165
 by: gah4 - Thu, 6 Jul 2023 23:52 UTC

On Monday, June 26, 2023 at 4:08:16 AM UTC-7, Farzad Tatar wrote:

(snip)

> Thank you for the information. Regarding the code converters, they all have
> issues with conversions. They delete many parts of the fixed form code
> (maybe ignore some lines).
Can you say which ones those are?

There is an early one designed, I believe, for Fortran 77.
It doesn't know about any statements added later.

Because of the possibility of blanks added or subtracted, it tries to
match up to actual statements. I am not sure what it does with
others, but it might delete them.

As well as I know, at least through Fortran 2018, all statements
are allowed in fixed form. There are some suggesting removing
this ability in later versions.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor