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
cfb9c98a
"platforms/vscode:/vscode.git/clone" did not exist on "734d5d67d24ec00e19e8c093548587f9771e5d8a"
Commit
cfb9c98a
authored
Jan 03, 2009
by
Mark Friedrichs
Browse files
Mods
parent
1ce7d813
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
1 deletion
+40
-1
platforms/brook/src/BrookBonded.cpp
platforms/brook/src/BrookBonded.cpp
+14
-0
platforms/brook/src/BrookBonded.h
platforms/brook/src/BrookBonded.h
+10
-0
platforms/brook/src/BrookCalcGBSAOBCForceKernel.cpp
platforms/brook/src/BrookCalcGBSAOBCForceKernel.cpp
+2
-1
platforms/brook/src/OpenMMBrookInterface.cpp
platforms/brook/src/OpenMMBrookInterface.cpp
+5
-0
platforms/brook/src/gpu/kforce_CDLJ.br
platforms/brook/src/gpu/kforce_CDLJ.br
+9
-0
No files found.
platforms/brook/src/BrookBonded.cpp
View file @
cfb9c98a
...
@@ -224,6 +224,19 @@ int BrookBonded::isSetupCompleted( void ) const {
...
@@ -224,6 +224,19 @@ int BrookBonded::isSetupCompleted( void ) const {
return
_setupCompleted
;
return
_setupCompleted
;
}
}
/**
* Set SetupCompleted flag
*
* @param setupCompleted flag
*
* @return SetupCompleted flag
*/
int
BrookBonded
::
setupCompleted
(
int
setupCompleted
){
_setupCompleted
=
setupCompleted
;
return
_setupCompleted
;
}
/**
/**
* Return string showing if all inverse map streams are set
* Return string showing if all inverse map streams are set
*
*
...
@@ -1798,6 +1811,7 @@ void BrookBonded::computeForces( BrookStreamImpl& positionStream, BrookStreamImp
...
@@ -1798,6 +1811,7 @@ void BrookBonded::computeForces( BrookStreamImpl& positionStream, BrookStreamImp
static
const
int
L_Stream
=
3
;
static
const
int
L_Stream
=
3
;
static
const
int
PrintOn
=
0
;
static
const
int
PrintOn
=
0
;
static
const
int
MaxErrorMessages
=
2
;
static
const
int
MaxErrorMessages
=
2
;
static
int
ErrorMessages
=
0
;
static
int
ErrorMessages
=
0
;
...
...
platforms/brook/src/BrookBonded.h
View file @
cfb9c98a
...
@@ -266,6 +266,16 @@ class BrookBonded : public BrookCommon {
...
@@ -266,6 +266,16 @@ class BrookBonded : public BrookCommon {
int
isSetupCompleted
(
void
)
const
;
int
isSetupCompleted
(
void
)
const
;
/**
* Set SetupCompleted flag
*
* @param SetupCompleted flag
*
* @return SetupCompleted flag
*/
int
setupCompleted
(
int
isSetupCompleted
);
private:
private:
static
const
int
NumberOfParameterStreams
=
5
;
static
const
int
NumberOfParameterStreams
=
5
;
...
...
platforms/brook/src/BrookCalcGBSAOBCForceKernel.cpp
View file @
cfb9c98a
...
@@ -128,6 +128,7 @@ void BrookCalcGBSAOBCForceKernel::initialize( const System& system, const GBSAOB
...
@@ -128,6 +128,7 @@ void BrookCalcGBSAOBCForceKernel::initialize( const System& system, const GBSAOB
// ---------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
static
const
std
::
string
methodName
=
"BrookCalcGBSAOBCForceKernel::initialize"
;
static
const
std
::
string
methodName
=
"BrookCalcGBSAOBCForceKernel::initialize"
;
const
int
PrintOn
=
0
;
// ---------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
...
@@ -158,7 +159,7 @@ void BrookCalcGBSAOBCForceKernel::initialize( const System& system, const GBSAOB
...
@@ -158,7 +159,7 @@ void BrookCalcGBSAOBCForceKernel::initialize( const System& system, const GBSAOB
_openMMBrookInterface
.
setTriggerForceKernel
(
this
);
_openMMBrookInterface
.
setTriggerForceKernel
(
this
);
_openMMBrookInterface
.
setTriggerEnergyKernel
(
this
);
_openMMBrookInterface
.
setTriggerEnergyKernel
(
this
);
if
(
log
){
if
(
log
&&
PrintOn
){
std
::
string
contents
=
brookGbsa
.
getContentsString
(
);
std
::
string
contents
=
brookGbsa
.
getContentsString
(
);
(
void
)
fprintf
(
log
,
"%s brookGbsa::contents
\n
%s"
,
methodName
.
c_str
(),
contents
.
c_str
()
);
(
void
)
fprintf
(
log
,
"%s brookGbsa::contents
\n
%s"
,
methodName
.
c_str
(),
contents
.
c_str
()
);
(
void
)
fflush
(
log
);
(
void
)
fflush
(
log
);
...
...
platforms/brook/src/OpenMMBrookInterface.cpp
View file @
cfb9c98a
...
@@ -252,6 +252,7 @@ BrookBondParameters* OpenMMBrookInterface::getHarmonicBondForceParameters( void
...
@@ -252,6 +252,7 @@ BrookBondParameters* OpenMMBrookInterface::getHarmonicBondForceParameters( void
*/
*/
int
OpenMMBrookInterface
::
setHarmonicBondForceParameters
(
BrookBondParameters
*
brookBondParameters
){
int
OpenMMBrookInterface
::
setHarmonicBondForceParameters
(
BrookBondParameters
*
brookBondParameters
){
_brookBonded
.
setupCompleted
(
0
);
return
_setBondParameters
(
HarmonicBondIndex
,
brookBondParameters
);
return
_setBondParameters
(
HarmonicBondIndex
,
brookBondParameters
);
}
}
...
@@ -276,6 +277,7 @@ BrookBondParameters* OpenMMBrookInterface::getHarmonicAngleForceParameters( void
...
@@ -276,6 +277,7 @@ BrookBondParameters* OpenMMBrookInterface::getHarmonicAngleForceParameters( void
*/
*/
int
OpenMMBrookInterface
::
setHarmonicAngleForceParameters
(
BrookBondParameters
*
brookBondParameters
){
int
OpenMMBrookInterface
::
setHarmonicAngleForceParameters
(
BrookBondParameters
*
brookBondParameters
){
_brookBonded
.
setupCompleted
(
0
);
return
_setBondParameters
(
HarmonicAngleIndex
,
brookBondParameters
);
return
_setBondParameters
(
HarmonicAngleIndex
,
brookBondParameters
);
}
}
...
@@ -300,6 +302,7 @@ BrookBondParameters* OpenMMBrookInterface::getPeriodicTorsionForceParameters( vo
...
@@ -300,6 +302,7 @@ BrookBondParameters* OpenMMBrookInterface::getPeriodicTorsionForceParameters( vo
*/
*/
int
OpenMMBrookInterface
::
setPeriodicTorsionForceParameters
(
BrookBondParameters
*
brookBondParameters
){
int
OpenMMBrookInterface
::
setPeriodicTorsionForceParameters
(
BrookBondParameters
*
brookBondParameters
){
_brookBonded
.
setupCompleted
(
0
);
return
_setBondParameters
(
PeriodicTorsionForceIndex
,
brookBondParameters
);
return
_setBondParameters
(
PeriodicTorsionForceIndex
,
brookBondParameters
);
}
}
...
@@ -324,6 +327,7 @@ BrookBondParameters* OpenMMBrookInterface::getRBTorsionForceParameters( void ) c
...
@@ -324,6 +327,7 @@ BrookBondParameters* OpenMMBrookInterface::getRBTorsionForceParameters( void ) c
*/
*/
int
OpenMMBrookInterface
::
setRBTorsionForceParameters
(
BrookBondParameters
*
brookBondParameters
){
int
OpenMMBrookInterface
::
setRBTorsionForceParameters
(
BrookBondParameters
*
brookBondParameters
){
_brookBonded
.
setupCompleted
(
0
);
return
_setBondParameters
(
RbTorsionForceIndex
,
brookBondParameters
);
return
_setBondParameters
(
RbTorsionForceIndex
,
brookBondParameters
);
}
}
...
@@ -348,6 +352,7 @@ BrookBondParameters* OpenMMBrookInterface::getNonBonded14ForceParameters( void )
...
@@ -348,6 +352,7 @@ BrookBondParameters* OpenMMBrookInterface::getNonBonded14ForceParameters( void )
*/
*/
int
OpenMMBrookInterface
::
setNonBonded14ForceParameters
(
BrookBondParameters
*
brookBondParameters
){
int
OpenMMBrookInterface
::
setNonBonded14ForceParameters
(
BrookBondParameters
*
brookBondParameters
){
_brookBonded
.
setupCompleted
(
0
);
return
_setBondParameters
(
LJ14Index
,
brookBondParameters
);
return
_setBondParameters
(
LJ14Index
,
brookBondParameters
);
}
}
...
...
platforms/brook/src/gpu/kforce_CDLJ.br
View file @
cfb9c98a
...
@@ -927,6 +927,15 @@ fl = float3( ddphi, 0.0f, 0.0f );
...
@@ -927,6 +927,15 @@ fl = float3( ddphi, 0.0f, 0.0f );
fi_pair = fs * ril;
fi_pair = fs * ril;
fi += fi_pair;
fi += fi_pair;
fl -= fi_pair;
fl -= fi_pair;
//fi = float3( charge, parm4.z, parm4.w );
//fj = float3( 1.0f, 2.f, 3.0f );
/*
} else {
fi = float3( 0.0f, 0.f, 0.0f );
fj = float3( 0.0f, 0.f, 0.0f );
fk = float3( 0.0f, 0.f, 0.0f );
fl = float3( 0.0f, 0.f, 0.0f );
*/
}
}
}
}
...
...
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