Date: Mon, 2 Sep 2013 15:23:22 +0100 (BST) From: Anton Shterenlikht <mexas@bris.ac.uk> To: mexas@bris.ac.uk, sgk@troutmask.apl.washington.edu Cc: fortran@freebsd.org Subject: Re: lazy memory allocation Message-ID: <201309021423.r82ENMFF071408@mech-cluster241.men.bris.ac.uk> In-Reply-To: <20130824205033.GA55140@troutmask.apl.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
>From sgk@troutmask.apl.washington.edu Sat Aug 24 21:53:02 2013 > >That's why you need to do 'allocate(a(10) :: source=0.)'. This >will touch the memory, and should fail on lazy memory allocators >if memory isn't available. I'm looking at MFE, section 15.4.3 Sourced allocation. I think your syntax is wrong. It should be: allocate( a(10), source = 0. ) The double colon (::) is used for typed allocation. Just in case somebody will be reading the archives... Thanks again Anton
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309021423.r82ENMFF071408>