![]() This causes the 'import_array' error (below). One of the problems with using Cantera with Numpy is that Cantera incorrectly parses the path to the Numpy home directory to get a Numpy include directory that doesn't exist. Preconfig contains many options that are laid out very clearly, so go through the file and set values appropriate to your system. This is a wrapper for configure (so when you are ready to configure, you don't run. Go to this directory, and edit the preconfig file (see Cantera Preconfig/Snow Leopard Preconfig). Start by downloading the Cantera 1.8 source code, and unzip it. If you're installing Cantera on a Mac, you have to build it from source. This guide will only cover this method.Īnther package that is not required by Cantera, but that is useful, is Sundials, a suite of nonlinear and differential equation solvers. I highly recommend using version 1.8.0 and Numpy, as Numarray is no longer supported. If you wish to use Cantera from Python, you have two options: Sundials_libdir=$HOME/main/pkg/sundials/2.5.0/lib \ Sundials_include=$HOME/main/pkg/sundials/2.5.0/include \ ![]() Once I did that, I could run scons with the following line: Here's my modified sundials config (don't forget to run make clean before re-compiling with fPIC): That way, Cantera and Sundials will play well. The trickiest thing I had to do was related to Sundials - I had to re-compile sundials and passed the flags -fPIC to the C compiler. Here are some notes.įirst, I had to install gfortran, which was available via aptitude: I installed Ubuntu 12.04 onto an Asus Eee 1001 netbook. (it used to be hosted at SourceForge, but the project has since moved to Google Code) You can download Cantera from Google Code: 3.6.7 Problem with libtool -static option (unrecognized option -static).3.6.5 make install problem: demos/cxx (UPDATED).3.6.3 import_array error/Python unrecognized type errors.3.6.1 file was built for unsupported file format which is not the architecture being linked (x86_64).3.5.2 Building Samples/Running Tests with Scons.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |