From 7dc1e89be3788ca268d6e68c9ebda413707cd07b Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Fri, 13 Jul 2007 16:52:18 +0000 Subject: [PATCH] Fixed a compile problem that occurred on solaris --- Cantera/fortran/src/fct.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Cantera/fortran/src/fct.cpp b/Cantera/fortran/src/fct.cpp index ffacba4a5..ce6edd873 100644 --- a/Cantera/fortran/src/fct.cpp +++ b/Cantera/fortran/src/fct.cpp @@ -6,6 +6,9 @@ * Cantera objects are stored and referenced by integers - no * pointers are passed to or from the calling application. */ +/* + * $Id$ + */ // turn off warnings under Windows #ifdef WIN32 @@ -20,7 +23,6 @@ #include "ThermoFactory.h" #include "ctml.h" #include "importKinetics.h" -//#include "converters/ck2ct.h" #include "../../clib/src/Storage.h" #include "../../clib/src/Cabinet.h" #include "InterfaceKinetics.h" @@ -28,8 +30,10 @@ #include "flib_defs.h" -// Assign storage for the templated classes' static member -//template<> Cabinet * Cabinet::__storage=0; +// Assert that there is storage +// for the templated classes' static member +// (needed to compile on solaris) +template<> Cabinet * Cabinet::__storage; inline XML_Node* _xml(const integer* n) { return Cabinet::cabinet()->item(*n);