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
4577b1a2
Commit
4577b1a2
authored
May 16, 2008
by
Peter Eastman
Browse files
The ReferencePlatform was not getting registered automatically.
parent
0b662b49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
olla/src/Platform.cpp
olla/src/Platform.cpp
+13
-0
platforms/reference/src/ReferencePlatform.cpp
platforms/reference/src/ReferencePlatform.cpp
+0
-8
No files found.
olla/src/Platform.cpp
View file @
4577b1a2
...
...
@@ -37,11 +37,24 @@
#include "StreamFactory.h"
#include <set>
#include "ReferencePlatform.h"
using
namespace
OpenMM
;
using
namespace
std
;
std
::
vector
<
Platform
*>
Platform
::
platforms
;
static
int
registerPlatforms
()
{
// Register the Platforms built into the main library. This should eventually be moved elsewhere.
ReferencePlatform
*
platform
=
new
ReferencePlatform
();
Platform
::
registerPlatform
(
platform
);
return
0
;
}
static
int
platformInitializer
=
registerPlatforms
();
Platform
::~
Platform
()
{
set
<
KernelFactory
*>
uniqueKernelFactories
;
set
<
StreamFactory
*>
uniqueStreamFactories
;
...
...
platforms/reference/src/ReferencePlatform.cpp
View file @
4577b1a2
...
...
@@ -36,14 +36,6 @@
using
namespace
OpenMM
;
ReferencePlatform
*
registerReferencePlatform
()
{
ReferencePlatform
*
platform
=
new
ReferencePlatform
();
Platform
::
registerPlatform
(
platform
);
return
platform
;
}
ReferencePlatform
*
staticPlatform
=
registerReferencePlatform
();
ReferencePlatform
::
ReferencePlatform
()
{
ReferenceKernelFactory
*
factory
=
new
ReferenceKernelFactory
();
registerKernelFactory
(
CalcStandardMMForceFieldKernel
::
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