Commit graph

41 commits

Author SHA1 Message Date
Ray Speth
002c158761 Cleanup include statements
Move includes from header to implementation files where possible, and remove
unnecessary includes.
2014-08-28 16:54:13 +00:00
Ray Speth
907bbd8b79 Allow importing phases from XML or CTI strings 2014-07-30 16:59:51 +00:00
Ray Speth
232e28d2c8 Check file modification time before reusing cached XML 2014-07-30 16:59:04 +00:00
Ray Speth
6866725b57 Simplify implementation of get_XML_File
This is easier now that we don't have to write the XML file to disk
when importing from a CTI file.
2014-07-30 16:58:52 +00:00
Ray Speth
19e3a09980 Allow '~/' as alias for user's home directory when importing cti/xml 2014-07-10 22:33:20 +00:00
Ray Speth
789574ac80 Remove commented-out code 2014-05-27 02:52:21 +00:00
Ray Speth
54ded64e4b Miscellaneous whitespace cleanup 2014-05-08 23:01:12 +00:00
Ray Speth
9e4ae0d050 Deprecate unused global 'error' function 2014-03-28 23:12:36 +00:00
Ray Speth
d516d46f33 Remove unnecessary use of static_cast<int> 2014-01-31 23:15:09 +00:00
Ray Speth
3dc335565c Fix missing include in application.cpp
Causes compilation errors on OS X 10.8.
2014-01-31 03:44:27 +00:00
Ray Speth
ff9584105b Do implicit CTI to XML conversions without generating .xml files
When instantiating a phase from a .cti file, do the conversion in memory,
without writing the XML representation to disk. This eliminates the unrequrested
XML files that Cantera normally generates, and also avoids errors when running
Cantera from a directory where the user does not have write permissons.
2014-01-30 00:47:37 +00:00
Ray Speth
f63f8ae57e Remove deprecated HTML logging functionality 2013-12-09 01:36:11 +00:00
Ray Speth
a6614b87bb [Doxygen] Fix some incorrect/missing "@file" commands 2013-06-06 15:32:30 +00:00
Ray Speth
2483e39ae5 Allow tests to suppress deprecation warnings
This prevents certain tests from failing comparisons with blessed output files.
2013-06-05 17:09:46 +00:00
Ray Speth
56d481785c Deprecate HTML log files 2013-06-05 17:09:39 +00:00
Ray Speth
d253fc0d63 Eliminate redundant standard library includes 2013-06-05 17:08:13 +00:00
Ray Speth
3305698b6a Add support for Visual Studio 2012 2013-06-03 22:17:23 +00:00
Ray Speth
c1cfdffccc Add "warn_deprecated" function
This function can be used for issuing runtime deprecation warnings
2013-05-31 15:56:06 +00:00
Ray Speth
65d7cab42e Cleaned up Doxygen documentation for Application and global functions 2013-04-12 23:07:38 +00:00
Ray Speth
07fcf5aab2 Removed unnecessary overloads of writelog for char* 2013-04-12 23:07:30 +00:00
Harry Moffat
94cb8cbb65 Fixed printout issues for interfacial voltage variables in equilibrium solver.
Added a global variable to indicate debug mode.
2013-03-26 02:26:35 +00:00
Ray Speth
e04e59cdd3 Removed extraneous parentheses around arguments to 'return'
'return' is a keyword, not a function, so these parens are unnecessary.
2013-02-14 01:03:48 +00:00
Ray Speth
1a0b59efd4 Eliminated unnecessary variable shadowing in write_logfile 2013-02-14 01:03:05 +00:00
Ray Speth
990a0b5491 Fixed an error that prevented HTML log files from being written 2013-01-07 18:08:17 +00:00
Ray Speth
1d19803885 Pass "const std::string&" instead of "std::string" when possible 2012-10-24 15:42:51 +00:00
Ray Speth
a1b2f54ffb Fixed segfault in HTML logging at intermediate log levels 2012-10-24 15:42:20 +00:00
Ray Speth
3ce3da1fa2 Fixed code formatting 2012-07-18 18:32:29 +00:00
Ray Speth
8b6c9a0bf7 Removed some deprecated functions 2012-07-16 22:18:11 +00:00
Ray Speth
6cddd8a87a Fixed 'unused variable' warninings when compiling without thread safety 2012-06-05 19:56:42 +00:00
Ray Speth
2970e0c693 Added a ScopedLock typedef that can be used without requiring extra any #ifdefs 2012-05-31 14:57:54 +00:00
Ray Speth
1d94cd39e3 Fixed compilation when setting "with_html_log_files=n" 2012-05-17 21:15:09 +00:00
Ray Speth
cbae64b079 Removed (broken) support for MPThreads (Mac OS 9) 2012-05-17 21:15:05 +00:00
Ray Speth
021e11456e Fixed building with thread safety 2012-05-17 21:15:01 +00:00
Ray Speth
d4adf41799 Fixed setup of data directories on Windows 2012-04-16 20:59:48 +00:00
Ray Speth
bf5dfeaa97 Moved some #includes to the top of their respective files 2012-04-12 15:28:24 +00:00
Ray Speth
ba8c814814 Use the Windows Registry to set PYTHONPATH
Cantera's mechanism conversion scripts are now installed in the main
Cantera directory, so processing should work fine as long as Python is
on the path, whether or not the Cantera Python module is installed.
2012-04-11 20:26:05 +00:00
Ray Speth
d16f70ab44 Fixed some spelling issues 2012-04-04 18:44:24 +00:00
Ray Speth
0045bc0a71 Removed unused tmpDir and sleep functions 2012-03-09 23:00:16 +00:00
Ray Speth
92017de067 Removed some vestigial ifdef blocks 2012-03-09 22:58:17 +00:00
Ray Speth
54efbaa320 Rewrote exception handling to be more general and more explicit
CanteraError inerits from std:exception, so now it has a what() method
that is used to print a message describing the exception. Adding an
exception to the Cantera error stack now requires explicitly calling
the .save() method.
2012-03-05 20:45:56 +00:00
Ray Speth
e3b5ee802e Contents of misc.cpp relocated
The functions formerly defined in misc.cpp are now defined in the
source files corresponding to the header files where they were
declared.
2012-03-05 20:45:31 +00:00