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
989bb504
Commit
989bb504
authored
Jun 18, 2009
by
Michael Sherman
Browse files
Fix comments and cmake script for wrappers.
parent
801ca67b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
10 deletions
+16
-10
examples/wrappers/CMakeLists.txt
examples/wrappers/CMakeLists.txt
+4
-4
examples/wrappers/OpenMM_CWrapper.cpp
examples/wrappers/OpenMM_CWrapper.cpp
+1
-1
examples/wrappers/OpenMM_CWrapper.h
examples/wrappers/OpenMM_CWrapper.h
+10
-4
examples/wrappers/OpenMM_Module.f90
examples/wrappers/OpenMM_Module.f90
+1
-1
No files found.
examples/wrappers/CMakeLists.txt
View file @
989bb504
...
@@ -10,7 +10,7 @@ TARGET_LINK_LIBRARIES(${OpenMM_CWRAPPER_LIB} ${SHARED_TARGET})
...
@@ -10,7 +10,7 @@ TARGET_LINK_LIBRARIES(${OpenMM_CWRAPPER_LIB} ${SHARED_TARGET})
SET_TARGET_PROPERTIES
(
${
OpenMM_CWRAPPER_LIB
}
PROPERTIES
SET_TARGET_PROPERTIES
(
${
OpenMM_CWRAPPER_LIB
}
PROPERTIES
PROJECT_LABEL
"Example - C Wrapper"
)
PROJECT_LABEL
"Example - C Wrapper"
)
# Don't install yet
INSTALL
(
FILES OpenMM_CWrapper.cpp
#INSTALL_TARGETS(/lib${LIB64}/plugins
OpenMM_CWrapper.h
#
RUNTIME_DIRECTORY /lib${LIB64}/plugins
OpenMM_Module.f90
#
${OpenMM_CWRAPPER_LIB}
)
DESTINATION examples
)
examples/wrappers/OpenMM_CWrapper.cpp
View file @
989bb504
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//
OpenMM(tm)
example
C and Fortran wrapper functions (June 2009)
// OpenMM(tm)
PROTOTPYE
C and Fortran wrapper functions (June 2009)
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// This is the C++ implementation of the C wrappers for the OpenMM workshop.
// This is the C++ implementation of the C wrappers for the OpenMM workshop.
// The functions here convert between C types and OpenMM's C++ objects
// The functions here convert between C types and OpenMM's C++ objects
...
...
examples/wrappers/OpenMM_CWrapper.h
View file @
989bb504
/* --------------------------------------------------------------------------
/* --------------------------------------------------------------------------
*
OpenMM(tm)
example
C wrapper function declarations (June 2009)
* OpenMM(tm)
PROTOTYPE
C wrapper function declarations (June 2009)
* --------------------------------------------------------------------------
* --------------------------------------------------------------------------
* This header should be included by a C main program that would like to
* This header should be included by a C main program that would like to
* access the OpenMM API through the C wrappers. Please note that this is not
* access the OpenMM API through the C wrappers. Please note that this is an
* an official part of OpenMM; it is just an example of how the C++ API can
* experimentatl prototype, not an official part of OpenMM; it is just an
* be wrapped for access from C.
* example of how the C++ API can be wrapped for access from C.
*
* This set of wrappers is incomplete. If you add more, please send them
* to us. Improvements in substance and style would also be greatly
* appreciated. If you have ideas (or better code) please post to the OpenMM
* forum on simtk.org/home/openmm or if you're shy you can email Michael
* Sherman at msherman@stanford.edu.
*
*
* Note: this header must be includable in both ANSI C and C++ code, because
* Note: this header must be includable in both ANSI C and C++ code, because
* the function declarations must be common to both the users and the
* the function declarations must be common to both the users and the
...
...
examples/wrappers/OpenMM_Module.f90
View file @
989bb504
! -----------------------------------------------------------------------------
! -----------------------------------------------------------------------------
!
OpenMM(tm) Fortran 95 Interface (June 2009)
! OpenMM(tm)
PROTOTYPE
Fortran 95 Interface (June 2009)
! -----------------------------------------------------------------------------
! -----------------------------------------------------------------------------
! This is a Fortran 95 interface module providing access to the OpenMM API
! This is a Fortran 95 interface module providing access to the OpenMM API
! which is written in C++. At link time this module requires that the OpenMM
! which is written in C++. At link time this module requires that the OpenMM
...
...
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