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
"wrappers/vscode:/vscode.git/clone" did not exist on "00e0bb962b5448b6f7f019f7afacd2f709a64736"
Commit
4577b1a2
authored
May 16, 2008
by
Peter Eastman
Browse files
The ReferencePlatform was not getting registered automatically.
parent
0b662b49
Changes
2
Show 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 @@
...
@@ -37,11 +37,24 @@
#include "StreamFactory.h"
#include "StreamFactory.h"
#include <set>
#include <set>
#include "ReferencePlatform.h"
using
namespace
OpenMM
;
using
namespace
OpenMM
;
using
namespace
std
;
using
namespace
std
;
std
::
vector
<
Platform
*>
Platform
::
platforms
;
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
()
{
Platform
::~
Platform
()
{
set
<
KernelFactory
*>
uniqueKernelFactories
;
set
<
KernelFactory
*>
uniqueKernelFactories
;
set
<
StreamFactory
*>
uniqueStreamFactories
;
set
<
StreamFactory
*>
uniqueStreamFactories
;
...
...
platforms/reference/src/ReferencePlatform.cpp
View file @
4577b1a2
...
@@ -36,14 +36,6 @@
...
@@ -36,14 +36,6 @@
using
namespace
OpenMM
;
using
namespace
OpenMM
;
ReferencePlatform
*
registerReferencePlatform
()
{
ReferencePlatform
*
platform
=
new
ReferencePlatform
();
Platform
::
registerPlatform
(
platform
);
return
platform
;
}
ReferencePlatform
*
staticPlatform
=
registerReferencePlatform
();
ReferencePlatform
::
ReferencePlatform
()
{
ReferencePlatform
::
ReferencePlatform
()
{
ReferenceKernelFactory
*
factory
=
new
ReferenceKernelFactory
();
ReferenceKernelFactory
*
factory
=
new
ReferenceKernelFactory
();
registerKernelFactory
(
CalcStandardMMForceFieldKernel
::
Name
(),
factory
);
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