[J3] [EXTERNAL] [BULK] Re: Description of MOLD in an allocate statement.

Patrick Fasano patrick.fasano at nextsilicon.com
Tue Dec 16 17:26:52 UTC 2025


It might be nice to add a note explaining the difference between SOURCE=
and MOLD= (if there is one, otherwise a note explaining their equivalence).

Cheers,
Patrick


On Tue, Dec 16, 2025 at 10:18 AM Clune, Thomas L. (GSFC-6101) via J3 <
j3 at mailman.j3-fortran.org> wrote:

> Yes - thank you Bob and Steve.
>
> Cheers,
>
>
>    - Tom
>
>
> * <https://www.nasa.gov/>*
>
> *Thomas Clune*
>
> *Lead, Software Infrastructure*
>
> Global Modeling and Assimilation Office
>
> NASA Goddard Space Flight Center
>
> MS 610.1
>
> 8800 Greenbelt RD, Greenbelt, MD 20771
>
> *Thomas.L.Clune at nasa.gov <Thomas.L.Clune at nasa.gov>*
>
>
> *From: *J3 <j3-bounces at mailman.j3-fortran.org> on behalf of Steve Lionel
> via J3 <j3 at mailman.j3-fortran.org>
> *Date: *Tuesday, December 16, 2025 at 11:06 AM
> *To: *j3 at mailman.j3-fortran.org <j3 at mailman.j3-fortran.org>
> *Cc: *Steve Lionel <steve at stevelionel.com>
> *Subject: *[EXTERNAL] [BULK] Re: [J3] Description of MOLD in an allocate
> statement.
>
> *CAUTION:* This email originated from outside of NASA.  Please take care
> when clicking links or opening attachments.  Use the "Report Message"
> button to report suspicious messages to the NASA SOC.
>
>
>
> Tom,
>
> I understand your confusion; it took me a bit too. The key is that the BNF
> for both SOURCE= and MOLD= is *source-expr*. You can then find what
> happens when *source-expr* appears in p5.  Further, C949 prohibits both
> SOURCE= and MOLD= from appearing.
>
> Steve
>
> On 12/16/2025 9:47 AM, Clune, Thomas L. (GSFC-6101) via J3 wrote:
>
> Perhaps my PDF search is failing me, but as far as I can tell the only
> description of the functionality of MOLD=​  in the standard is the
> following on p160 of 25-007r1:
>
> *If **MOLD= **appears and **source-expr **is a variable, its value need
> not be defined.*
>
> Hopefully I’m just not finding it.  Otherwise, surely we can provide just
> a bit of normative text describing the intent here?
>
>
>    - Tom
>
>
> * <https://www.nasa.gov/>*
>
> *Thomas Clune*
>
> *Lead, Software Infrastructure*
>
> Global Modeling and Assimilation Office
>
> NASA Goddard Space Flight Center
>
> MS 610.1
>
> 8800 Greenbelt RD, Greenbelt, MD 20771
>
> *Thomas.L.Clune at nasa.gov <Thomas.L.Clune at nasa.gov>*
>
>
>
>
>

-- 
This e-mail message and any attachments thereto are intended only for the 
person or entity to which it is addressed and may contain confidential 
and/or privileged material. Any retransmission, dissemination, copying or 
other use of, or taking of any action in reliance upon this information is 
prohibited. If you are not the intended addressee, please contact the 
sender immediately and delete the materials and information from your 
device and system and confirm the deletion by reply e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20251216/0cf41cad/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 25178 bytes
Desc: not available
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20251216/0cf41cad/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 274 bytes
Desc: not available
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20251216/0cf41cad/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 25178 bytes
Desc: not available
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20251216/0cf41cad/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 274 bytes
Desc: not available
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20251216/0cf41cad/attachment-0007.png>


More information about the J3 mailing list