Skip to content

Commit

Permalink
Initialize OpenCL energyParameterDerivatives map
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulPPelaez committed May 15, 2024
1 parent 00b8120 commit 277c90d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platforms/opencl/src/OpenCLTorchKernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ void OpenCLCalcTorchForceKernel::initialize(const System& system, const TorchFor
outputsForces = force.getOutputsForces();
for (int i = 0; i < force.getNumGlobalParameters(); i++)
globalNames.push_back(force.getGlobalParameterName(i));
for (int i = 0; i < force.getNumEnergyParameterDerivatives(); i++)
energyParameterDerivatives.push_back(force.getEnergyParameterDerivativeName(i));

int numParticles = system.getNumParticles();

// Inititalize OpenCL objects.
Expand Down

0 comments on commit 277c90d

Please sign in to comment.