From chuck at sharpsteen.net  Sun May  8 03:09:18 2011
From: chuck at sharpsteen.net (Sharpie)
Date: Sat, 7 May 2011 18:09:18 -0700 (PDT)
Subject: [Rd] fortan common block
In-Reply-To: <6441154A9FF1CD4386AF4ABF141A056D2159FADE@WMEXOSCD2-N1.bocad.bank-banque-canada.ca>
References: <6441154A9FF1CD4386AF4ABF141A056D2159FADE@WMEXOSCD2-N1.bocad.bank-banque-canada.ca>
Message-ID: <1304816958633-3506373.post@n4.nabble.com>


Paul Gilbert wrote:
> 
> Is it possible in R to call a fortran routine that sets variables in a
> common block and expect the values to persist when a call is made from R
> to a second routine that uses the common block?
> 
> If not (as I suspect),  is it possible to use a common block in a group of
> routines that are used together, for as long the routines do not return to
> R?
> 
> Paul
> 

Don't see why not--should be pretty easy to test. Personally, I would use
variables in a Fortran 90 module over a common block.

-Charlie

-----
Charlie Sharpsteen
Undergraduate-- Environmental Resources Engineering
Humboldt State University
--
View this message in context: http://r.789695.n4.nabble.com/fortan-common-block-tp3503204p3506373.html
Sent from the R devel mailing list archive at Nabble.com.



[Rd] fortan common block
Sharpie