[Users] Fortran module dependencies

Erik Schnetter schnetter at cct.lsu.edu
Fri Oct 12 21:10:32 CDT 2007


On Oct 11, 2007, at 15:56:37, David Rideout wrote:

> How does one 'properly' use a module which is defined in another
> thorn?  I followed FAQ 6 but still get warnings:
>
> Warning: While tracing module dependencies: Source file for module
> "lapack" not found
>    Searched in thorn directory only.

The thorn which contains the module needs to provide a capability,  
and the thorn which uses the module needs to require that  
capability.  You can use the module name as the name of the  
capability.  This is declared in the file configuration.ccl.  Cactus  
then automatically handles the thorn dependencies, i.e., it chooses a  
correct compilation and link order.

The other suggested methods using the makefile fragments choose the  
correct link order, but they do not cause the dependent Fortran file  
to be recompiled if the module changes, since this dependency will be  
missed.

-erik

-- 
Erik Schnetter <schnetter at cct.lsu.edu>

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://www.cactuscode.org/pipermail/users/attachments/20071012/80f17c67/attachment.bin 


More information about the Users mailing list