Function DP_NewDeepSpinModelDeviWithParam#
Defined in File c_api.h
Function Documentation#
- DP_DeepSpinModelDevi *DP_NewDeepSpinModelDeviWithParam(const char **c_model, const int n_models, const int gpu_rank, const char **c_file_contents, const int n_file_contents, const int *size_file_contents)#
DP spin model deviation constructor with initialization.
- Since
API version 24
- Parameters:
c_models – [in] The array of the name of the frozen model file.
nmodels – [in] The number of models.
gpu_rank – [in] The rank of the GPU.
c_file_contents – [in] The contents of the model file.
n_file_contents – [in] The number of the contents of the model file.
size_file_contents – [in] The sizes of the contents of the model file.
- Returns:
DP_DeepSpinModelDevi* A pointer to the deep potential model deviation.