mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-02-14 15:55:24 -05:00
Finished normalization of the gas constants
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
42
src/Backends/Helmholtz/Configuration.cpp
Normal file
42
src/Backends/Helmholtz/Configuration.cpp
Normal file
@@ -0,0 +1,42 @@
|
||||
#include "Configuration.h"
|
||||
|
||||
namespace CoolProp
|
||||
{
|
||||
//
|
||||
//Configuration::Configuration()
|
||||
//{
|
||||
//}
|
||||
//
|
||||
//Configuration::~Configuration()
|
||||
//{
|
||||
//}
|
||||
|
||||
bool get_config_bool(configuration_keys key)
|
||||
{
|
||||
switch(key)
|
||||
{
|
||||
case NORMALIZE_GAS_CONSTANTS:
|
||||
return true;
|
||||
default:
|
||||
throw ValueError(format("%d is invalid key to get_config_bool",key));
|
||||
}
|
||||
}
|
||||
double get_config_double(configuration_keys key)
|
||||
{
|
||||
switch(key)
|
||||
{
|
||||
default:
|
||||
throw ValueError(format("%d is invalid key to get_config_double",key));
|
||||
}
|
||||
}
|
||||
std::string get_config_string(configuration_keys key)
|
||||
{
|
||||
switch(key)
|
||||
{
|
||||
default:
|
||||
throw ValueError(format("%d is invalid key to get_config_string",key));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user