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
2d9c3255
"...ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "662eb730d42ce64807b618fb5b0b7a4c810c3c52"
Commit
2d9c3255
authored
May 13, 2010
by
Mark Friedrichs
Browse files
Removed isNotReady() method
parent
1b99afd7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
130 deletions
+0
-130
plugins/freeEnergy/platforms/reference/src/gbsa/GBVISoftcoreParameters.cpp
...y/platforms/reference/src/gbsa/GBVISoftcoreParameters.cpp
+0
-58
plugins/freeEnergy/platforms/reference/src/gbsa/GBVISoftcoreParameters.h
...rgy/platforms/reference/src/gbsa/GBVISoftcoreParameters.h
+0
-10
plugins/freeEnergy/platforms/reference/src/gbsa/ObcSoftcoreParameters.cpp
...gy/platforms/reference/src/gbsa/ObcSoftcoreParameters.cpp
+0
-52
plugins/freeEnergy/platforms/reference/src/gbsa/ObcSoftcoreParameters.h
...ergy/platforms/reference/src/gbsa/ObcSoftcoreParameters.h
+0
-10
No files found.
plugins/freeEnergy/platforms/reference/src/gbsa/GBVISoftcoreParameters.cpp
View file @
2d9c3255
...
@@ -785,64 +785,6 @@ std::string GBVISoftcoreParameters::getStateString( const char* title ) const {
...
@@ -785,64 +785,6 @@ std::string GBVISoftcoreParameters::getStateString( const char* title ) const {
}
}
/**---------------------------------------------------------------------------------------
Return zero value if all parameters set; else return nonzero
@return ready status
--------------------------------------------------------------------------------------- */
int
GBVISoftcoreParameters
::
isNotReady
(
void
)
const
{
// ---------------------------------------------------------------------------------------
static
const
char
*
methodName
=
"
\n
GBVISoftcoreParameters::isNotReady"
;
// ---------------------------------------------------------------------------------------
int
isReady
=
ImplicitSolventParameters
::
isNotReady
();
int
errors
=
0
;
std
::
stringstream
message
;
message
<<
methodName
;
const
RealOpenMM
*
scaledRadii
=
getScaledRadii
();
if
(
scaledRadii
==
NULL
||
scaledRadii
[
0
]
<=
0.0
){
errors
++
;
message
<<
"
\n
scaledRadii are not set"
;
}
const
RealOpenMM
*
gamma
=
getGammaParameters
();
if
(
gamma
==
NULL
){
errors
++
;
message
<<
"
\n
gamma parameters are not set"
;
}
// check scale factors are in correct units
RealOpenMM
average
,
stdDev
,
maxValue
,
minValue
;
int
minIndex
,
maxIndex
;
SimTKOpenMMUtilities
::
getArrayStatistics
(
getNumberOfAtoms
(),
scaledRadii
,
&
average
,
&
stdDev
,
&
minValue
,
&
minIndex
,
&
maxValue
,
&
maxIndex
);
if
(
average
<
0.3
||
average
>
2.0
||
minValue
<
0.1
){
errors
++
;
message
<<
"
\n
scale factors for atomic radii appear not to be set correctly -- radii should be in nm"
;
message
<<
"
\n
average radius="
<<
average
<<
" min radius="
<<
minValue
<<
" at atom index="
<<
minIndex
;
}
if
(
errors
){
message
<<
std
::
endl
;
(
void
)
fprintf
(
stderr
,
"%s"
,
message
.
str
().
c_str
()
);
}
errors
+=
isReady
;
return
errors
;
}
/**---------------------------------------------------------------------------------------
/**---------------------------------------------------------------------------------------
Set the force to use a cutoff.
Set the force to use a cutoff.
...
...
plugins/freeEnergy/platforms/reference/src/gbsa/GBVISoftcoreParameters.h
View file @
2d9c3255
...
@@ -278,16 +278,6 @@ class GBVISoftcoreParameters : public ImplicitSolventParameters {
...
@@ -278,16 +278,6 @@ class GBVISoftcoreParameters : public ImplicitSolventParameters {
std
::
string
getStateString
(
const
char
*
title
)
const
;
std
::
string
getStateString
(
const
char
*
title
)
const
;
/**---------------------------------------------------------------------------------------
Return zero value if all parameters set; else return nonzero
@return ready status
--------------------------------------------------------------------------------------- */
int
isNotReady
(
void
)
const
;
/**---------------------------------------------------------------------------------------
/**---------------------------------------------------------------------------------------
Set the force to use a cutoff.
Set the force to use a cutoff.
...
...
plugins/freeEnergy/platforms/reference/src/gbsa/ObcSoftcoreParameters.cpp
View file @
2d9c3255
...
@@ -615,58 +615,6 @@ std::string ObcSoftcoreParameters::getStateString( const char* title ) const {
...
@@ -615,58 +615,6 @@ std::string ObcSoftcoreParameters::getStateString( const char* title ) const {
}
}
/**---------------------------------------------------------------------------------------
Return zero value if all parameters set; else return nonzero
@return ready status
--------------------------------------------------------------------------------------- */
int
ObcSoftcoreParameters
::
isNotReady
(
void
)
const
{
// ---------------------------------------------------------------------------------------
static
const
char
*
methodName
=
"
\n
ObcSoftcoreParameters::isNotReady"
;
// ---------------------------------------------------------------------------------------
int
isReady
=
ImplicitSolventParameters
::
isNotReady
();
int
errors
=
0
;
std
::
stringstream
message
;
message
<<
methodName
;
const
RealOpenMM
*
scaledRadiusFactors
=
getScaledRadiusFactors
();
if
(
scaledRadiusFactors
==
NULL
||
scaledRadiusFactors
[
0
]
<=
0.0
){
errors
++
;
message
<<
"
\n
scaledRadiusFactors is not set"
;
}
// check scale factors are in correct units
RealOpenMM
average
,
stdDev
,
maxValue
,
minValue
;
int
minIndex
,
maxIndex
;
SimTKOpenMMUtilities
::
getArrayStatistics
(
getNumberOfAtoms
(),
scaledRadiusFactors
,
&
average
,
&
stdDev
,
&
minValue
,
&
minIndex
,
&
maxValue
,
&
maxIndex
);
if
(
average
<
0.3
||
average
>
2.0
||
minValue
<
0.1
){
errors
++
;
message
<<
"
\n
scale factors for atomic radii appear not to be set correctly -- radii should be in nm"
;
message
<<
"
\n
average radius="
<<
average
<<
" min radius="
<<
minValue
<<
" at atom index="
<<
minIndex
;
}
if
(
errors
){
message
<<
std
::
endl
;
(
void
)
fprintf
(
stderr
,
"%s"
,
message
.
str
().
c_str
()
);
}
errors
+=
isReady
;
return
errors
;
}
/**---------------------------------------------------------------------------------------
/**---------------------------------------------------------------------------------------
Set the force to use a cutoff.
Set the force to use a cutoff.
...
...
plugins/freeEnergy/platforms/reference/src/gbsa/ObcSoftcoreParameters.h
View file @
2d9c3255
...
@@ -283,16 +283,6 @@ class ObcSoftcoreParameters : public ImplicitSolventParameters {
...
@@ -283,16 +283,6 @@ class ObcSoftcoreParameters : public ImplicitSolventParameters {
std
::
string
getStateString
(
const
char
*
title
)
const
;
std
::
string
getStateString
(
const
char
*
title
)
const
;
/**---------------------------------------------------------------------------------------
Return zero value if all parameters set; else return nonzero
@return ready status
--------------------------------------------------------------------------------------- */
int
isNotReady
(
void
)
const
;
/**---------------------------------------------------------------------------------------
/**---------------------------------------------------------------------------------------
Set the force to use a cutoff.
Set the force to use a cutoff.
...
...
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