add check whether libcurl support was compiled into LAMMPS and geturl is functional

This commit is contained in:
Axel Kohlmeyer
2024-12-29 16:49:39 -05:00
parent 9dbb9d356d
commit 4d36a84738
3 changed files with 22 additions and 4 deletions

View File

@ -339,6 +339,15 @@ bool LammpsWrapper::config_accelerator(const char *package, const char *category
#endif
}
bool LammpsWrapper::config_has_curl_support() const
{
#if defined(LAMMPS_GUI_USE_PLUGIN)
return ((liblammpsplugin_t *)plugin_handle)->config_has_curl_support() != 0;
#else
return lammps_config_has_curl_support() != 0;
#endif
}
bool LammpsWrapper::has_gpu_device() const
{
#if defined(LAMMPS_GUI_USE_PLUGIN)