Commit 989bb504 authored by Michael Sherman's avatar Michael Sherman
Browse files

Fix comments and cmake script for wrappers.

parent 801ca67b
...@@ -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)
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// 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
......
/* -------------------------------------------------------------------------- /* --------------------------------------------------------------------------
* 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
......
! ----------------------------------------------------------------------------- ! -----------------------------------------------------------------------------
! 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment