version 1.14 | version 1.15 |
---|
| |
colvarmodule *colvars; | colvarmodule *colvars; |
| |
/// Default constructor | /// Default constructor |
inline colvarproxy() : script(NULL) {} | inline colvarproxy() : script(NULL), b_smp_active(true) {} |
| |
/// Default destructor | /// Default destructor |
virtual ~colvarproxy() {} | virtual ~colvarproxy() {} |
| |
| |
// ***************** SHARED-MEMORY PARALLELIZATION ***************** | // ***************** SHARED-MEMORY PARALLELIZATION ***************** |
| |
/// Whether or not threaded parallelization is available | /// Whether threaded parallelization is available (TODO: make this a cvm::deps feature) |
virtual int smp_enabled() | virtual int smp_enabled() |
{ | { |
return COLVARS_NOT_IMPLEMENTED; | return COLVARS_NOT_IMPLEMENTED; |
} | } |
| |
| /// Whether threaded parallelization should be used (TODO: make this a cvm::deps feature) |
| bool b_smp_active; |
| |
/// Distribute calculation of colvars (and their components) across threads | /// Distribute calculation of colvars (and their components) across threads |
virtual int smp_colvars_loop() | virtual int smp_colvars_loop() |
{ | { |