Daniel Wheeler <daniel.wheel...@...> writes:

> 
> 
> Hi Recif,
> 
> What happens when you import PyTrilinos at the command line? I assume
> you get the same problem.
> 
> My configuration is like this, I put trilinos in my local area under
> 
>     /users/wd15/usr/i686/2.6.18-4-k7/4.0
> 
> I then have the following environment variables set
> 
>    $ echo $LD_LIBRARY_PATH
>    /usr/site/lib:/users/wd15/usr/i686/2.6.18-4-k7/4.0/lib
> 
>    $ echo $PYTHONPATH
>    .:/users/wd15/usr/i686/2.6.18-4-k7/4.0/lib/python:
>    /users/wd15/usr/i686/2.6.18-4-k7/4.0/lib/python2.4/site-packages:
>    /users/wd15/usr/i686/2.6.18-4-k7/4.0:
>    /users/wd15/usr/i686/2.6.18-4-k7/4.0/lib/python/gist:
>    /users/wd15/Documents/python/fipy/trunk/utils:
>    /users/wd15/Documents/python/fipy/trunk
> 
>    $ echo $CPATH
>    /users/wd15/usr/i686/2.6.18-4-k7/4.0/include
> 
>    $ echo $LIBRARY_PATH
>    /users/wd15/usr/i686/2.6.18-4-k7/4.0/lib
> 
> I can't remember what each of these do or why they point at various places.
> 
> Also take a look at
>
<http://matforge.org/fipy/wiki/SURF2007#CompilingrunningTrilinosontheCTCMSlabmachines>.
> This has a few details about environment variables that need to be
> set.
> 
Hi Daniel,
Thanks for your response.
I had not set the --enable-pytrilinos option while configuring trilinos, and
after doing that and updating LD_LIBRARY_PATH, I can use the trilinos solver. 

In case it helps somebody else compiling trilinos on a 64-bit system, I had to
slightly modify the suggested configuration in the FiPy 2.0 manual: adding the
-fpic option for CFLAGS, CXXFLAGS and FFLAGS, and removing the -malign-double
option for FFLAGS.

Recif



Reply via email to