Thanks for your replies.
Since I was converting DATA statements of arrays to PARAMETERS, I had forgotten that array constructors could use multiplication.
Mike Metcalfs implied DO, I did know, but many of our constants (predictor-corrector constant variables) have replication of a few elements and the implied DO (as Richard mentioned) seemed overkill to make the equivalent of 3*0.0. These are quite easy, but replication of some non-zero value to several decimal places was getting a bit arduous.
I like Robin's suggestion of (6)7 as a replicator. Can this go into a suggested item for 2020 :-) Fortran? Credit to Robin.
After being used to DATA statements, I certainly feel that a replicator (repeat factor) is useful in declaration statements. Repeating, e.g., PI (yes, could be another constant, but...) and a small change may not be propogated throughout the parameter, and I don't really want to generate another parameter for each possibly replicated element of a parameter array. [I know that PI has sometimes historically changed according to which US state you are in :-)))]
Regards, Paddy
***********************************************************************
Please consider the environment before printing this email.
"This electronic message and any attachments may contain privileged
and confidential information intended only for the use of the
addressees named above. If you are not the intended recipient of
this email, please delete the message and any attachment and advise
the sender. You are hereby notified that any use, dissemination,
distribution, reproduction of this email is prohibited.
If you have received the email in error, please notify TransGrid
immediately. Any views expressed in this email are those of the
individual sender except where the sender expressly and with
authority states them to be the views of TransGrid. TransGrid uses
virus-scanning software but excludes any liability for viruses
contained in any attachment.
Please note the email address for TransGrid personnel is now
[log in to unmask]"
***********************************************************************
|