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
7f561d68
Commit
7f561d68
authored
Oct 05, 2011
by
Mark Friedrichs
Browse files
Cosmetic changes
parent
b64535d8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
35 deletions
+35
-35
plugins/freeEnergy/platforms/reference/src/gbsa/CpuGBVISoftcore.cpp
...eeEnergy/platforms/reference/src/gbsa/CpuGBVISoftcore.cpp
+16
-16
plugins/freeEnergy/platforms/reference/src/gbsa/CpuGBVISoftcore.h
...freeEnergy/platforms/reference/src/gbsa/CpuGBVISoftcore.h
+6
-6
plugins/freeEnergy/platforms/reference/src/gbsa/GBVISoftcoreParameters.cpp
...y/platforms/reference/src/gbsa/GBVISoftcoreParameters.cpp
+4
-4
plugins/freeEnergy/platforms/reference/src/gbsa/GBVISoftcoreParameters.h
...rgy/platforms/reference/src/gbsa/GBVISoftcoreParameters.h
+9
-9
No files found.
plugins/freeEnergy/platforms/reference/src/gbsa/CpuGBVISoftcore.cpp
View file @
7f561d68
...
...
@@ -96,7 +96,7 @@ void CpuGBVISoftcore::setGBVISoftcoreParameters( GBVISoftcoreParameters* gbviPar
--------------------------------------------------------------------------------------- */
std
::
vector
<
RealOpenMM
>
&
CpuGBVISoftcore
::
getSwitchDeriviative
(
void
){
RealOpenMM
Vector
&
CpuGBVISoftcore
::
getSwitchDeriviative
(
void
){
return
_switchDeriviative
;
}
...
...
@@ -213,7 +213,7 @@ void CpuGBVISoftcore::computeBornRadiiUsingQuinticSpline( RealOpenMM atomicRadiu
--------------------------------------------------------------------------------------- */
void
CpuGBVISoftcore
::
computeBornRadii
(
std
::
vector
<
OpenMM
::
RealVec
>&
atomCoordinates
,
std
::
vector
<
RealOpenMM
>
&
bornRadii
){
void
CpuGBVISoftcore
::
computeBornRadii
(
std
::
vector
<
OpenMM
::
RealVec
>&
atomCoordinates
,
RealOpenMM
Vector
&
bornRadii
){
// ---------------------------------------------------------------------------------------
...
...
@@ -228,11 +228,11 @@ void CpuGBVISoftcore::computeBornRadii( std::vector<OpenMM::RealVec>& atomCoordi
GBVISoftcoreParameters
*
gbviParameters
=
getGBVISoftcoreParameters
();
int
numberOfAtoms
=
gbviParameters
->
getNumberOfAtoms
();
const
std
::
vector
<
RealOpenMM
>
&
atomicRadii
=
gbviParameters
->
getAtomicRadii
();
const
std
::
vector
<
RealOpenMM
>
&
scaledRadii
=
gbviParameters
->
getScaledRadii
();
const
std
::
vector
<
RealOpenMM
>
&
bornRadiusScaleFactors
=
gbviParameters
->
getBornRadiusScaleFactors
();
const
RealOpenMM
Vector
&
atomicRadii
=
gbviParameters
->
getAtomicRadii
();
const
RealOpenMM
Vector
&
scaledRadii
=
gbviParameters
->
getScaledRadii
();
const
RealOpenMM
Vector
&
bornRadiusScaleFactors
=
gbviParameters
->
getBornRadiusScaleFactors
();
std
::
vector
<
RealOpenMM
>
&
switchDeriviative
=
getSwitchDeriviative
();
RealOpenMM
Vector
&
switchDeriviative
=
getSwitchDeriviative
();
// ---------------------------------------------------------------------------------------
...
...
@@ -475,8 +475,8 @@ RealOpenMM CpuGBVISoftcore::computeBornEnergy( const vector<RealOpenMM>& bornRad
const
GBVISoftcoreParameters
*
gbviParameters
=
getGBVISoftcoreParameters
();
const
RealOpenMM
preFactor
=
gbviParameters
->
getElectricConstant
();
const
int
numberOfAtoms
=
gbviParameters
->
getNumberOfAtoms
();
const
std
::
vector
<
RealOpenMM
>
&
atomicRadii
=
gbviParameters
->
getAtomicRadii
();
const
std
::
vector
<
RealOpenMM
>
&
gammaParameters
=
gbviParameters
->
getGammaParameters
();
const
RealOpenMM
Vector
&
atomicRadii
=
gbviParameters
->
getAtomicRadii
();
const
RealOpenMM
Vector
&
gammaParameters
=
gbviParameters
->
getGammaParameters
();
// ---------------------------------------------------------------------------------------
...
...
@@ -556,15 +556,15 @@ void CpuGBVISoftcore::computeBornForces( const vector<RealOpenMM>& bornRadii, ve
const
GBVISoftcoreParameters
*
gbviParameters
=
getGBVISoftcoreParameters
();
const
int
numberOfAtoms
=
gbviParameters
->
getNumberOfAtoms
();
const
std
::
vector
<
RealOpenMM
>
&
atomicRadii
=
gbviParameters
->
getAtomicRadii
();
const
std
::
vector
<
RealOpenMM
>
&
gammaParameters
=
gbviParameters
->
getGammaParameters
();
const
RealOpenMM
Vector
&
atomicRadii
=
gbviParameters
->
getAtomicRadii
();
const
RealOpenMM
Vector
&
gammaParameters
=
gbviParameters
->
getGammaParameters
();
const
RealOpenMM
preFactor
=
two
*
gbviParameters
->
getElectricConstant
();
// ---------------------------------------------------------------------------------------
// set energy/forces to zero
std
::
vector
<
RealOpenMM
>
bornForces
(
numberOfAtoms
,
0.0
);
RealOpenMM
Vector
bornForces
(
numberOfAtoms
,
0.0
);
std
::
vector
<
RealVec
>
forces
(
numberOfAtoms
);
for
(
int
atomI
=
0
;
atomI
<
numberOfAtoms
;
atomI
++
){
forces
[
atomI
][
0
]
=
zero
;
...
...
@@ -638,9 +638,9 @@ void CpuGBVISoftcore::computeBornForces( const vector<RealOpenMM>& bornRadii, ve
// dGpol/dBornRadius) = bornForces[]
// dBornRadius/dr = (1/3)*(bR**4)*(dV/dr)
const
std
::
vector
<
RealOpenMM
>
&
scaledRadii
=
gbviParameters
->
getScaledRadii
();
std
::
vector
<
RealOpenMM
>
&
switchDeriviative
=
getSwitchDeriviative
();
const
std
::
vector
<
RealOpenMM
>
&
bornRadiusScaleFactors
=
gbviParameters
->
getBornRadiusScaleFactors
();
const
RealOpenMM
Vector
&
scaledRadii
=
gbviParameters
->
getScaledRadii
();
RealOpenMM
Vector
&
switchDeriviative
=
getSwitchDeriviative
();
const
RealOpenMM
Vector
&
bornRadiusScaleFactors
=
gbviParameters
->
getBornRadiusScaleFactors
();
for
(
int
atomI
=
0
;
atomI
<
numberOfAtoms
;
atomI
++
){
RealOpenMM
R
=
atomicRadii
[
atomI
];
...
...
plugins/freeEnergy/platforms/reference/src/gbsa/CpuGBVISoftcore.h
View file @
7f561d68
...
...
@@ -39,7 +39,7 @@ class CpuGBVISoftcore {
// vector containing switching function derivative
std
::
vector
<
RealOpenMM
>
_switchDeriviative
;
RealOpenMM
Vector
_switchDeriviative
;
public:
...
...
@@ -92,7 +92,7 @@ class CpuGBVISoftcore {
--------------------------------------------------------------------------------------- */
std
::
vector
<
RealOpenMM
>
&
getSwitchDeriviative
(
void
);
RealOpenMM
Vector
&
getSwitchDeriviative
(
void
);
/**---------------------------------------------------------------------------------------
...
...
@@ -104,7 +104,7 @@ class CpuGBVISoftcore {
--------------------------------------------------------------------------------------- */
void
computeBornRadii
(
std
::
vector
<
OpenMM
::
RealVec
>&
atomCoordinates
,
std
::
vector
<
RealOpenMM
>
&
bornRadii
);
void
computeBornRadii
(
std
::
vector
<
OpenMM
::
RealVec
>&
atomCoordinates
,
RealOpenMM
Vector
&
bornRadii
);
/**---------------------------------------------------------------------------------------
...
...
@@ -198,7 +198,7 @@ class CpuGBVISoftcore {
--------------------------------------------------------------------------------------- */
RealOpenMM
computeBornEnergy
(
const
std
::
vector
<
RealOpenMM
>
&
bornRadii
,
std
::
vector
<
OpenMM
::
RealVec
>&
atomCoordinates
,
RealOpenMM
computeBornEnergy
(
const
RealOpenMM
Vector
&
bornRadii
,
std
::
vector
<
OpenMM
::
RealVec
>&
atomCoordinates
,
const
RealOpenMM
*
partialCharges
);
/**---------------------------------------------------------------------------------------
...
...
@@ -212,7 +212,7 @@ class CpuGBVISoftcore {
--------------------------------------------------------------------------------------- */
void
computeBornForces
(
const
std
::
vector
<
RealOpenMM
>
&
bornRadii
,
std
::
vector
<
OpenMM
::
RealVec
>&
atomCoordinates
,
void
computeBornForces
(
const
RealOpenMM
Vector
&
bornRadii
,
std
::
vector
<
OpenMM
::
RealVec
>&
atomCoordinates
,
const
RealOpenMM
*
partialCharges
,
std
::
vector
<
OpenMM
::
RealVec
>&
inputForces
);
/**---------------------------------------------------------------------------------------
...
...
plugins/freeEnergy/platforms/reference/src/gbsa/GBVISoftcoreParameters.cpp
View file @
7f561d68
...
...
@@ -205,7 +205,7 @@ RealOpenMM GBVISoftcoreParameters::getQuinticUpperSplineLimit( void ) const {
--------------------------------------------------------------------------------------- */
const
std
::
vector
<
RealOpenMM
>
&
GBVISoftcoreParameters
::
getAtomicRadii
(
void
)
const
{
const
RealOpenMM
Vector
&
GBVISoftcoreParameters
::
getAtomicRadii
(
void
)
const
{
return
_atomicRadii
;
}
...
...
@@ -242,7 +242,7 @@ void GBVISoftcoreParameters::setAtomicRadii( const RealOpenMMVector& atomicRadii
--------------------------------------------------------------------------------------- */
const
std
::
vector
<
RealOpenMM
>
&
GBVISoftcoreParameters
::
getScaledRadii
(
void
)
const
{
const
RealOpenMM
Vector
&
GBVISoftcoreParameters
::
getScaledRadii
(
void
)
const
{
return
_scaledRadii
;
}
...
...
@@ -279,7 +279,7 @@ void GBVISoftcoreParameters::setScaledRadii( const RealOpenMMVector& scaledRadii
--------------------------------------------------------------------------------------- */
const
std
::
vector
<
RealOpenMM
>
&
GBVISoftcoreParameters
::
getGammaParameters
(
void
)
const
{
const
RealOpenMM
Vector
&
GBVISoftcoreParameters
::
getGammaParameters
(
void
)
const
{
return
_gammaParameters
;
}
...
...
@@ -316,7 +316,7 @@ void GBVISoftcoreParameters::setGammaParameters( const RealOpenMMVector& gammas
--------------------------------------------------------------------------------------- */
const
std
::
vector
<
RealOpenMM
>
&
GBVISoftcoreParameters
::
getBornRadiusScaleFactors
(
void
)
const
{
const
RealOpenMM
Vector
&
GBVISoftcoreParameters
::
getBornRadiusScaleFactors
(
void
)
const
{
return
_bornRadiusScaleFactors
;
}
...
...
plugins/freeEnergy/platforms/reference/src/gbsa/GBVISoftcoreParameters.h
View file @
7f561d68
...
...
@@ -56,10 +56,10 @@ class GBVISoftcoreParameters {
// gamma parameters
// BornRadiusScaleFactors parameters
std
::
vector
<
RealOpenMM
>
_scaledRadii
;
std
::
vector
<
RealOpenMM
>
_atomicRadii
;
std
::
vector
<
RealOpenMM
>
_gammaParameters
;
std
::
vector
<
RealOpenMM
>
_bornRadiusScaleFactors
;
RealOpenMM
Vector
_scaledRadii
;
RealOpenMM
Vector
_atomicRadii
;
RealOpenMM
Vector
_gammaParameters
;
RealOpenMM
Vector
_bornRadiusScaleFactors
;
RealOpenMM
_solventDielectric
;
RealOpenMM
_soluteDielectric
;
...
...
@@ -168,7 +168,7 @@ class GBVISoftcoreParameters {
--------------------------------------------------------------------------------------- */
const
std
::
vector
<
RealOpenMM
>
&
getScaledRadii
(
void
)
const
;
const
RealOpenMM
Vector
&
getScaledRadii
(
void
)
const
;
/**---------------------------------------------------------------------------------------
...
...
@@ -178,7 +178,7 @@ class GBVISoftcoreParameters {
--------------------------------------------------------------------------------------- */
void
setScaledRadii
(
const
std
::
vector
<
RealOpenMM
>
&
radii
);
void
setScaledRadii
(
const
RealOpenMM
Vector
&
radii
);
/**---------------------------------------------------------------------------------------
...
...
@@ -188,7 +188,7 @@ class GBVISoftcoreParameters {
--------------------------------------------------------------------------------------- */
const
std
::
vector
<
RealOpenMM
>
&
getAtomicRadii
(
void
)
const
;
const
RealOpenMM
Vector
&
getAtomicRadii
(
void
)
const
;
/**---------------------------------------------------------------------------------------
...
...
@@ -208,7 +208,7 @@ class GBVISoftcoreParameters {
--------------------------------------------------------------------------------------- */
const
std
::
vector
<
RealOpenMM
>
&
getGammaParameters
(
void
)
const
;
const
RealOpenMM
Vector
&
getGammaParameters
(
void
)
const
;
/**---------------------------------------------------------------------------------------
...
...
@@ -228,7 +228,7 @@ class GBVISoftcoreParameters {
--------------------------------------------------------------------------------------- */
const
std
::
vector
<
RealOpenMM
>
&
getBornRadiusScaleFactors
(
void
)
const
;
const
RealOpenMM
Vector
&
getBornRadiusScaleFactors
(
void
)
const
;
/**---------------------------------------------------------------------------------------
...
...
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