Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
6b39ec7e
Unverified
Commit
6b39ec7e
authored
May 29, 2020
by
peastman
Committed by
GitHub
May 29, 2020
Browse files
Merge pull request #2704 from thtrummer/master
Replace NULL with nullptr when adding kernel arguments
parents
fb830f9d
cba8ed7b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
platforms/common/src/CommonKernels.cpp
platforms/common/src/CommonKernels.cpp
+3
-3
platforms/common/src/IntegrationUtilities.cpp
platforms/common/src/IntegrationUtilities.cpp
+2
-2
plugins/drude/platforms/common/src/CommonDrudeKernels.cpp
plugins/drude/platforms/common/src/CommonDrudeKernels.cpp
+2
-2
No files found.
platforms/common/src/CommonKernels.cpp
View file @
6b39ec7e
...
...
@@ -6957,7 +6957,7 @@ void CommonIntegrateCustomStepKernel::prepareForComputation(ContextImpl& context
if
(
cc
.
getUseMixedPrecision
())
kernel
->
addArg
(
cc
.
getPosqCorrection
());
else
kernel
->
addArg
(
NULL
);
kernel
->
addArg
(
nullptr
);
kernel
->
addArg
(
integration
.
getPosDelta
());
kernel
->
addArg
(
cc
.
getVelm
());
kernel
->
addArg
(
cc
.
getLongForceBuffer
());
...
...
@@ -6992,7 +6992,7 @@ void CommonIntegrateCustomStepKernel::prepareForComputation(ContextImpl& context
if
(
cc
.
getUseMixedPrecision
())
kernel
->
addArg
(
cc
.
getPosqCorrection
());
else
kernel
->
addArg
(
NULL
);
kernel
->
addArg
(
nullptr
);
kernel
->
addArg
(
integration
.
getPosDelta
());
}
}
...
...
@@ -7048,7 +7048,7 @@ void CommonIntegrateCustomStepKernel::prepareForComputation(ContextImpl& context
if
(
cc
.
getUseMixedPrecision
())
kineticEnergyKernel
->
addArg
(
cc
.
getPosqCorrection
());
else
kineticEnergyKernel
->
addArg
(
NULL
);
kineticEnergyKernel
->
addArg
(
nullptr
);
kineticEnergyKernel
->
addArg
(
integration
.
getPosDelta
());
kineticEnergyKernel
->
addArg
(
cc
.
getVelm
());
kineticEnergyKernel
->
addArg
(
cc
.
getLongForceBuffer
());
...
...
platforms/common/src/IntegrationUtilities.cpp
View file @
6b39ec7e
...
...
@@ -549,7 +549,7 @@ IntegrationUtilities::IntegrationUtilities(ComputeContext& context, const System
if
(
context
.
getUseMixedPrecision
())
vsitePositionKernel
->
addArg
(
context
.
getPosqCorrection
());
else
vsitePositionKernel
->
addArg
(
NULL
);
vsitePositionKernel
->
addArg
(
nullptr
);
vsitePositionKernel
->
addArg
(
vsite2AvgAtoms
);
vsitePositionKernel
->
addArg
(
vsite2AvgWeights
);
vsitePositionKernel
->
addArg
(
vsite3AvgAtoms
);
...
...
@@ -565,7 +565,7 @@ IntegrationUtilities::IntegrationUtilities(ComputeContext& context, const System
if
(
context
.
getUseMixedPrecision
())
vsiteForceKernel
->
addArg
(
context
.
getPosqCorrection
());
else
vsiteForceKernel
->
addArg
(
NULL
);
vsiteForceKernel
->
addArg
(
nullptr
);
vsiteForceKernel
->
addArg
();
// Skip argument 2: the force array hasn't been created yet.
vsiteForceKernel
->
addArg
(
vsite2AvgAtoms
);
vsiteForceKernel
->
addArg
(
vsite2AvgWeights
);
...
...
plugins/drude/platforms/common/src/CommonDrudeKernels.cpp
View file @
6b39ec7e
...
...
@@ -282,7 +282,7 @@ void CommonIntegrateDrudeLangevinStepKernel::execute(ContextImpl& context, const
if
(
cc
.
getUseMixedPrecision
())
kernel2
->
addArg
(
cc
.
getPosqCorrection
());
else
kernel2
->
addArg
(
NULL
);
kernel2
->
addArg
(
nullptr
);
kernel2
->
addArg
(
integration
.
getPosDelta
());
kernel2
->
addArg
(
cc
.
getVelm
());
kernel2
->
addArg
(
integration
.
getStepSize
());
...
...
@@ -290,7 +290,7 @@ void CommonIntegrateDrudeLangevinStepKernel::execute(ContextImpl& context, const
if
(
cc
.
getUseMixedPrecision
())
hardwallKernel
->
addArg
(
cc
.
getPosqCorrection
());
else
hardwallKernel
->
addArg
(
NULL
);
hardwallKernel
->
addArg
(
nullptr
);
hardwallKernel
->
addArg
(
cc
.
getVelm
());
hardwallKernel
->
addArg
(
pairParticles
);
hardwallKernel
->
addArg
(
integration
.
getStepSize
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment