Commit graph

33 commits

Author SHA1 Message Date
Ray Speth
bdda7b5eaf [clib] Remove some redundant/unusable/unnecessary functions 2016-10-17 19:15:36 -04:00
Ray Speth
deee889baf [clib] Make clib headers public 2016-10-13 18:40:03 -04:00
Ray Speth
ae6e7fdff7 Add license/copyright info to files that were missing it 2016-10-10 22:48:23 -04:00
Ray Speth
e332fcbba2 [clib] Make clib actually usable as a C (not C++) interface
- Cannot include any C++ headers or use C++ types (e.g. 'bool')
- Functions arguments cannot have default values
- "extern C" needs to be wrapped by "#ifdef __cplusplus"
2016-09-19 18:48:40 -04:00
Ray Speth
7f21aa0f45 [Kinetics] Replace numerical constants for Kinetics types with strings 2016-07-07 21:36:11 -04:00
Ray Speth
f0e6d090dc [Fortran] Fix for multiple definitions of '_xml' function
This was causing linker errors when trying to link with the Fortran library.
2016-02-24 18:59:23 -05:00
Ray Speth
ee95c60813 Simplify error handling to eliminate need for global error stack
All of the functions for manipulating the global error stack
(CanteraError::save, setError, showErrors, etc.) are deprecated. The ability to
store an error is retained only for use in the C and Fortran interfaces so that
the last error message can be retrieved after a function returns an error code.
2015-11-16 19:50:55 -05:00
Ray Speth
66a3b5b48a Remove unnecessary and bogus 'inline' declarations 2015-11-12 12:22:09 -05:00
Ray Speth
acdf9cf0ed Clean up interstitial whitespace
Remove extra space around operators, between words, etc.
2015-08-02 23:06:16 -04:00
Ray Speth
e4c45b6429 General whitespace cleanup
Remove unnecessary blank lines and trailing whitespace. Replace tabs with
spaces.
2015-08-02 23:06:15 -04:00
Ray Speth
6cc5652de6 Remove commented-out code 2015-07-20 17:20:46 -04:00
Ray Speth
0ad587f50b Remove some unnecessary temporary references 2014-12-12 01:36:35 +00:00
Ray Speth
39b751d655 [Equil] Always use the member function versions of 'equilibrate'
The various free functions are deprecated, along with the now unnecessary
headers 'equil.h' and 'equilibrium.h'.
2014-11-08 00:53:45 +00:00
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
c887c1b6fb Remove unnecessary calls to parseCompString 2014-04-08 19:39:06 +00:00
Ray Speth
a17085661f [Fortran] Remove unhelpful error handling in _fkin() 2014-03-28 23:12:25 +00:00
Ray Speth
717a2367b1 [Transport] Add electricalConductivity method to all language interfaces
Thanks to user 'hencken' for the patch.

Resolves Issue 171.
2013-08-23 17:43:55 +00:00
Ray Speth
934010136d Removed unnecessary temporaries used for storing return values 2013-02-14 01:04:07 +00:00
Ray Speth
49dbb605ab Changed parseCompString to simplify its typical usage pattern 2012-08-17 16:44:34 +00:00
Ray Speth
858f355054 Removed some obsolete code for handling deprecated functions 2012-08-08 22:17:28 +00:00
Ray Speth
3ce3da1fa2 Fixed code formatting 2012-07-18 18:32:29 +00:00
Nicholas Malaya
f353fcbc16 [cantera]: adding patch that adds support for two methods in C++ to fortran, both getMixDiffCoeffs{Mass,Mole} 2012-06-15 18:53:39 +00:00
Ray Speth
ca4212cc57 Removed a number of unused / redundant typedefs 2012-03-15 19:51:57 +00:00
Ray Speth
22bdb58f33 Added consistent, complete exception handling to C interface functions 2012-03-09 23:00:31 +00:00
Ray Speth
312b7ff2c4 Deprecated the global "report(ThermoPhase&)" function 2012-03-09 22:57:35 +00:00
Ray Speth
9cdf079d2d Added templated generic exception handler for clib functions 2012-03-05 20:46:34 +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
27314703a0 Fixed qualifiers for functions that are part of the Cantera DLL 2012-02-27 18:15:47 +00:00
Ray Speth
3b1694fdfb Class Storage has been eliminated in favor of class Cabinet 2012-02-27 18:12:00 +00:00
Ray Speth
2da9603a15 Streamlined interface to class Cabinet 2012-02-27 18:11:47 +00:00
Ray Speth
fe8a5d49a8 Use std::min and std::max instead of homegrown alternatives 2012-02-21 16:03:32 +00:00
Ray Speth
a310345b9e Updated #includes to reflect new header file locations 2012-02-12 02:44:14 +00:00
Ray Speth
2528df0f75 Reorganized source tree structure
These changes make it unnecessary to copy header files around during
the build process, which tends to confuse IDEs and debuggers. The
headers which comprise Cantera's external C++ interface are now in
the 'include' directory.

All of the samples and demos are now in the 'samples' subdirectory.
2012-02-12 02:27:14 +00:00
Renamed from Cantera/fortran/src/fct.cpp (Browse further)