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
3f9a1d9d
"plugins/vscode:/vscode.git/clone" did not exist on "6563e355cfd1e7b42dbf359abdba8f5f8a51d04d"
Commit
3f9a1d9d
authored
Nov 26, 2009
by
Mark Friedrichs
Browse files
Removal of ReferenceFreeEnergyPlatform
parent
6e543d20
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
140 deletions
+29
-140
plugins/freeEnergy/platforms/reference/include/ReferenceFreeEnergyPlatform.h
...platforms/reference/include/ReferenceFreeEnergyPlatform.h
+0
-75
plugins/freeEnergy/platforms/reference/src/ReferenceFreeEnergyKernelFactory.cpp
...tforms/reference/src/ReferenceFreeEnergyKernelFactory.cpp
+29
-0
plugins/freeEnergy/platforms/reference/src/ReferenceFreeEnergyPlatform.cpp
...y/platforms/reference/src/ReferenceFreeEnergyPlatform.cpp
+0
-65
No files found.
plugins/freeEnergy/platforms/reference/include/ReferenceFreeEnergyPlatform.h
deleted
100644 → 0
View file @
6e543d20
#ifndef OPENMM_REFERENCE_FREE_ENERGY_PLATFORM_H_
#define OPENMM_REFERENCE_FREE_ENERGY_PLATFORM_H_
/* -------------------------------------------------------------------------- *
* OpenMM *
* -------------------------------------------------------------------------- *
* This is part of the OpenMM molecular simulation toolkit originating from *
* Simbios, the NIH National Center for Physics-Based Simulation of *
* Biological Structures at Stanford, funded under the NIH Roadmap for *
* Medical Research, grant U54 GM072970. See https://simtk.org. *
* *
* Portions copyright (c) 2008 Stanford University and the Authors. *
* Authors: Peter Eastman *
* Contributors: *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the "Software"), *
* to deal in the Software without restriction, including without limitation *
* the rights to use, copy, modify, merge, publish, distribute, sublicense, *
* and/or sell copies of the Software, and to permit persons to whom the *
* Software is furnished to do so, subject to the following conditions: *
* *
* The above copyright notice and this permission notice shall be included in *
* all copies or substantial portions of the Software. *
* *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *
* THE AUTHORS, CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
* USE OR OTHER DEALINGS IN THE SOFTWARE. *
* -------------------------------------------------------------------------- */
#include "ReferencePlatform.h"
namespace
OpenMM
{
/**
* This Platform subclass uses the reference implementations of all the OpenMM kernels.
*/
class
OPENMM_EXPORT
ReferenceFreeEnergyPlatform
:
public
ReferencePlatform
{
public:
// class PlatformData;
ReferenceFreeEnergyPlatform
();
const
std
::
string
&
getName
()
const
{
static
const
std
::
string
name
=
"ReferenceFreeEnergy"
;
return
name
;
}
#if 0
double getSpeed() const {
return 1;
}
bool supportsDoublePrecision() const;
void contextCreated(ContextImpl& context) const;
void contextDestroyed(ContextImpl& context) const;
#endif
};
#if 0
class ReferencePlatform::PlatformData {
public:
PlatformData(int numParticles);
~PlatformData();
int numParticles, stepCount;
double time;
void* positions;
void* velocities;
void* forces;
};
#endif
}
// namespace OpenMM
#endif
/*OPENMM_REFERENCE_FREE_ENERGY_PLATFORM_H_*/
plugins/freeEnergy/platforms/reference/src/ReferenceFreeEnergyKernelFactory.cpp
View file @
3f9a1d9d
...
...
@@ -36,6 +36,35 @@
using
namespace
OpenMM
;
// using PluginInitializer.h and initOpenMMPlugin() does not seem to work
//#include "openmm/PluginInitializer.h"
#if defined(OPENMM_BUILDING_SHARED_LIBRARY)
#if defined(WIN32)
#include <windows.h>
extern
"C"
void
initOpenMMReferenceFreeEnergyPlugin
();
BOOL
WINAPI
DllMain
(
HANDLE
hModule
,
DWORD
ul_reason_for_call
,
LPVOID
lpReserved
)
{
if
(
ul_reason_for_call
==
DLL_PROCESS_ATTACH
)
initOpenMMReferenceFreeEnergyPlugin
();
return
TRUE
;
}
#else
extern
"C"
void
__attribute__
((
constructor
))
initOpenMMReferenceFreeEnergyPlugin
();
#endif
#endif
extern
"C"
void
initOpenMMReferenceFreeEnergyPlugin
()
{
for
(
int
ii
=
0
;
ii
<
Platform
::
getNumPlatforms
();
ii
++
){
Platform
&
platform
=
Platform
::
getPlatform
(
ii
);
if
(
platform
.
getName
().
compare
(
"Reference"
)
==
0
){
ReferenceFreeEnergyKernelFactory
*
factory
=
new
ReferenceFreeEnergyKernelFactory
();
platform
.
registerKernelFactory
(
CalcNonbondedSoftcoreForceKernel
::
Name
(),
factory
);
platform
.
registerKernelFactory
(
CalcGBSAOBCSoftcoreForceKernel
::
Name
(),
factory
);
platform
.
registerKernelFactory
(
CalcGBVISoftcoreForceKernel
::
Name
(),
factory
);
}
}
}
KernelImpl
*
ReferenceFreeEnergyKernelFactory
::
createKernelImpl
(
std
::
string
name
,
const
Platform
&
platform
,
ContextImpl
&
context
)
const
{
ReferencePlatform
::
PlatformData
&
data
=
*
static_cast
<
ReferencePlatform
::
PlatformData
*>
(
context
.
getPlatformData
());
...
...
plugins/freeEnergy/platforms/reference/src/ReferenceFreeEnergyPlatform.cpp
deleted
100644 → 0
View file @
6e543d20
/* -------------------------------------------------------------------------- *
* OpenMM *
* -------------------------------------------------------------------------- *
* This is part of the OpenMM molecular simulation toolkit originating from *
* Simbios, the NIH National Center for Physics-Based Simulation of *
* Biological Structures at Stanford, funded under the NIH Roadmap for *
* Medical Research, grant U54 GM072970. See https://simtk.org. *
* *
* Portions copyright (c) 2008 Stanford University and the Authors. *
* Authors: Peter Eastman *
* Contributors: *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the "Software"), *
* to deal in the Software without restriction, including without limitation *
* the rights to use, copy, modify, merge, publish, distribute, sublicense, *
* and/or sell copies of the Software, and to permit persons to whom the *
* Software is furnished to do so, subject to the following conditions: *
* *
* The above copyright notice and this permission notice shall be included in *
* all copies or substantial portions of the Software. *
* *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *
* THE AUTHORS, CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
* USE OR OTHER DEALINGS IN THE SOFTWARE. *
* -------------------------------------------------------------------------- */
#include "ReferenceFreeEnergyPlatform.h"
#include "openmm/freeEnergyKernels.h"
#include "ReferenceFreeEnergyKernelFactory.h"
// using PluginInitializer.h and initOpenMMPlugin() does not seem to work
//#include "openmm/PluginInitializer.h"
#if defined(OPENMM_BUILDING_SHARED_LIBRARY)
#if defined(WIN32)
#include <windows.h>
extern
"C"
void
initOpenMMReferenceFreeEnergyPlugin
();
BOOL
WINAPI
DllMain
(
HANDLE
hModule
,
DWORD
ul_reason_for_call
,
LPVOID
lpReserved
)
{
if
(
ul_reason_for_call
==
DLL_PROCESS_ATTACH
)
initOpenMMReferenceFreeEnergyPlugin
();
return
TRUE
;
}
#else
extern
"C"
void
__attribute__
((
constructor
))
initOpenMMReferenceFreeEnergyPlugin
();
#endif
#endif
using
namespace
OpenMM
;
extern
"C"
void
initOpenMMReferenceFreeEnergyPlugin
()
{
Platform
::
registerPlatform
(
new
ReferenceFreeEnergyPlatform
()
);
}
ReferenceFreeEnergyPlatform
::
ReferenceFreeEnergyPlatform
(
void
){
ReferenceFreeEnergyKernelFactory
*
factory
=
new
ReferenceFreeEnergyKernelFactory
();
registerKernelFactory
(
CalcNonbondedSoftcoreForceKernel
::
Name
(),
factory
);
registerKernelFactory
(
CalcGBSAOBCSoftcoreForceKernel
::
Name
(),
factory
);
registerKernelFactory
(
CalcGBVISoftcoreForceKernel
::
Name
(),
factory
);
}
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