changed check.py to .check.py

This commit is contained in:
Dave Goodwin 2004-01-04 14:40:16 +00:00
parent 4fd8d91d5b
commit 2c6d9fac8e
2 changed files with 12 additions and 12 deletions

View file

@ -1,4 +1,4 @@
/* ../config.h. Generated by configure. */ /* ../config.h. Generated automatically by configure. */
// //
// Run the 'configure' script to generate 'config.h' from this input file. // Run the 'configure' script to generate 'config.h' from this input file.
// //
@ -9,11 +9,11 @@
//------------------------ Fortran settings -------------------// //------------------------ Fortran settings -------------------//
// define types doublereal, integer, and ftnlen to match the // define types doublereal, integer, and ftnlen to match the
// corresponding Fortran data types on your system. The defaults // corresponding Fortran data types on your system. The defaults
// are OK for most systems // are OK for most systems
typedef double doublereal; // Fortran double precision typedef double doublereal; // Fortran double precision
typedef int integer; // Fortran integer typedef int integer; // Fortran integer
typedef int ftnlen; // Fortran hidden string length type typedef int ftnlen; // Fortran hidden string length type
@ -22,7 +22,7 @@ typedef int ftnlen; // Fortran hidden string length type
// adding a hidden argement with the length of the string. Some // adding a hidden argement with the length of the string. Some
// compilers add the hidden length argument immediately after the // compilers add the hidden length argument immediately after the
// CHARACTER variable being passed, while others put all of the hidden // CHARACTER variable being passed, while others put all of the hidden
// length arguments at the end of the argument list. Define this if // length arguments at the end of the argument list. Define this if
// the lengths are at the end of the argument list. This is usually the // the lengths are at the end of the argument list. This is usually the
// case for most unix Fortran compilers, but is (by default) false for // case for most unix Fortran compilers, but is (by default) false for
// Visual Fortran under Windows. // Visual Fortran under Windows.
@ -37,7 +37,7 @@ typedef int ftnlen; // Fortran hidden string length type
//-------- LAPACK / BLAS --------- //-------- LAPACK / BLAS ---------
// Define if you are using LAPACK and BLAS from the Intel Math Kernel // Define if you are using LAPACK and BLAS from the Intel Math Kernel
// Library // Library
/* #undef HAVE_INTEL_MKL */ /* #undef HAVE_INTEL_MKL */
#define LAPACK_FTN_STRING_LEN_AT_END #define LAPACK_FTN_STRING_LEN_AT_END
@ -50,7 +50,7 @@ typedef int ftnlen; // Fortran hidden string length type
// The configure script defines this if the operatiing system is Mac // The configure script defines this if the operatiing system is Mac
// OS X, This used to add some Mac-specific directories to the default // OS X, This used to add some Mac-specific directories to the default
// data file search path. // data file search path.
#define DARWIN 1 #define DARWIN 0
//--------- Fonts for reaction path diagrams ---------------------- //--------- Fonts for reaction path diagrams ----------------------
@ -60,13 +60,13 @@ typedef int ftnlen; // Fortran hidden string length type
//--------------------- Python ------------------------------------ //--------------------- Python ------------------------------------
// used to run Python to process .cti files // used to run Python to process .cti files
#define PYTHON_EXE "/usr/bin/python" #define PYTHON_EXE "c:/python23/python"
//--------------------- Cantera ----------------------------------- //--------------------- Cantera -----------------------------------
// used to find data files // used to find data files
#define CANTERA_ROOT "/usr/local/cantera" #define CANTERA_ROOT "c:/cantera/cantera"

View file

@ -42,10 +42,10 @@ namespace ctml {
} }
static bool checkPython() { static bool checkPython() {
string path = tmpDir() + "/check.py"; string path = tmpDir() + "/.check.py";
ofstream f(path.c_str()); ofstream f(path.c_str());
if (!f) { if (!f) {
throw CanteraError("checkPython","cannot write to "+tmpDir()); throw CanteraError("checkPython","cannot open "+path+" for writing);
} }
f << "from Cantera import *\n"; f << "from Cantera import *\n";
f.close(); f.close();