mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Do not load the tables every time if they can be loaded from file
This commit is contained in:
@@ -677,14 +677,14 @@ class TabularBackend : public AbstractState
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
void check_tables(){
|
||||
if (!tables_loaded){
|
||||
try{
|
||||
/// Try to load the tables if you can.
|
||||
load_tables();
|
||||
// Set the flag saying tables have been successfully loaded
|
||||
tables_loaded = true;
|
||||
}
|
||||
catch(CoolProp::UnableToLoadError &){
|
||||
/// Check directory size
|
||||
|
||||
Reference in New Issue
Block a user