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
e79b262b
Commit
e79b262b
authored
Jun 15, 2012
by
Mark Friedrichs
Browse files
Added code to calculate electrostatic potential given vector of grid points
parent
70ba177d
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
plugins/amoeba/platforms/reference/src/AmoebaReferenceKernels.h
...s/amoeba/platforms/reference/src/AmoebaReferenceKernels.h
+9
-0
plugins/amoeba/wrappers/CWrapper_Header.xslt
plugins/amoeba/wrappers/CWrapper_Header.xslt
+1
-2
wrappers/python/src/swig_doxygen/swigInputConfig.py
wrappers/python/src/swig_doxygen/swigInputConfig.py
+3
-1
No files found.
plugins/amoeba/platforms/reference/src/AmoebaReferenceKernels.h
View file @
e79b262b
...
@@ -384,6 +384,15 @@ public:
...
@@ -384,6 +384,15 @@ public:
* @return the potential energy due to the force
* @return the potential energy due to the force
*/
*/
double
execute
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
);
double
execute
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
);
/**
* Execute the kernel to calculate the electrostatic potential
*
* @param context the context in which to execute this kernel
* @param inputGrid input grid coordinates
* @param outputElectrostaticPotential output potential
*/
void
getElectrostaticPotential
(
ContextImpl
&
context
,
const
std
::
vector
<
Vec3
>&
inputGrid
,
std
::
vector
<
double
>&
outputElectrostaticPotential
);
private:
private:
int
numMultipoles
;
int
numMultipoles
;
int
polarizationType
;
int
polarizationType
;
...
...
plugins/amoeba/wrappers/CWrapper_Header.xslt
View file @
e79b262b
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<xsl:variable
name=
"vector_tortor_type_id"
select=
"/GCC_XML/Class[starts-with(@name, 'vector<std::vector<std::vector<double')]/@id"
/>
<xsl:variable
name=
"vector_tortor_type_id"
select=
"/GCC_XML/Class[starts-with(@name, 'vector<std::vector<std::vector<double')]/@id"
/>
<!-- Do not generate functions for the following classes -->
<!-- Do not generate functions for the following classes -->
<xsl:variable
name=
"skip_classes"
select=
"('Vec3', 'Kernel', 'System', 'Stream', 'KernelImpl', 'StreamImpl', 'KernelFactory', 'StreamFactory', 'ContextImpl', 'OpenMMException', 'Force', 'ForceImpl')"
/>
<xsl:variable
name=
"skip_classes"
select=
"('Vec3',
'Context',
'Kernel', 'System', 'Stream', 'KernelImpl', 'StreamImpl', 'KernelFactory', 'StreamFactory', 'ContextImpl', 'OpenMMException', 'Force', 'ForceImpl')"
/>
<!-- Do not generate the following functions -->
<!-- Do not generate the following functions -->
<xsl:variable
name=
"skip_methods"
select=
"('OpenMM_Context_getState', 'OpenMM_Platform_loadPluginsFromDirectory')"
/>
<xsl:variable
name=
"skip_methods"
select=
"('OpenMM_Context_getState', 'OpenMM_Platform_loadPluginsFromDirectory')"
/>
<!-- Suppress any function which references any of the following classes -->
<!-- Suppress any function which references any of the following classes -->
...
@@ -46,7 +46,6 @@ static <xsl:call-template name="wrap_type"><xsl:with-param name="type_id" select
...
@@ -46,7 +46,6 @@ static <xsl:call-template name="wrap_type"><xsl:with-param name="type_id" select
typedef struct OpenMM_
<xsl:value-of
select=
"concat(@name, '_struct OpenMM_', @name, ';')"
/>
typedef struct OpenMM_
<xsl:value-of
select=
"concat(@name, '_struct OpenMM_', @name, ';')"
/>
</xsl:for-each>
</xsl:for-each>
typedef struct OpenMM_IntArray_struct OpenMM_IntArray;
typedef struct OpenMM_2D_IntArray_struct OpenMM_2D_IntArray;
typedef struct OpenMM_2D_IntArray_struct OpenMM_2D_IntArray;
typedef struct OpenMM_3D_DoubleArray_struct OpenMM_3D_DoubleArray;
typedef struct OpenMM_3D_DoubleArray_struct OpenMM_3D_DoubleArray;
...
...
wrappers/python/src/swig_doxygen/swigInputConfig.py
View file @
e79b262b
...
@@ -286,8 +286,10 @@ UNITS = {
...
@@ -286,8 +286,10 @@ UNITS = {
(
"AmoebaMultipoleForce"
,
"getCovalentMap"
)
:
(
None
,
()),
(
"AmoebaMultipoleForce"
,
"getCovalentMap"
)
:
(
None
,
()),
(
"AmoebaMultipoleForce"
,
"getCovalentMaps"
)
:
(
None
,
()),
(
"AmoebaMultipoleForce"
,
"getCovalentMaps"
)
:
(
None
,
()),
(
"AmoebaMultipoleForce"
,
"getScalingDistanceCutoff"
)
:
(
'unit.nanometer'
,
()),
(
"AmoebaMultipoleForce"
,
"getScalingDistanceCutoff"
)
:
(
'unit.nanometer'
,
()),
#("AmoebaMultipoleForce", "getElectricConstant") : ( '1/(unit.nanometer*unit.kilojoule_per_mole)', ()),
(
"AmoebaMultipoleForce"
,
"getElectricConstant"
)
:
(
None
,
()),
(
"AmoebaMultipoleForce"
,
"getElectricConstant"
)
:
(
None
,
()),
#("AmoebaMultipoleForce", "getElectrostaticPotential") : ( None, ('unit.kilojoule_per_mole')),
#("AmoebaMultipoleForce", "getElectrostaticPotential") : ( ('unit.kilojoule_per_mole'), ()),
(
"AmoebaMultipoleForce"
,
"getElectrostaticPotential"
)
:
(
None
,
()),
(
"AmoebaOutOfPlaneBendForce"
,
"getNumOutOfPlaneBends"
)
:
(
None
,
()),
(
"AmoebaOutOfPlaneBendForce"
,
"getNumOutOfPlaneBends"
)
:
(
None
,
()),
(
"AmoebaOutOfPlaneBendForce"
,
"getAmoebaGlobalOutOfPlaneBendCubic"
)
:
(
None
,()),
(
"AmoebaOutOfPlaneBendForce"
,
"getAmoebaGlobalOutOfPlaneBendCubic"
)
:
(
None
,()),
...
...
Prev
1
2
Next
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