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
f337005b
Commit
f337005b
authored
Jun 12, 2009
by
Michael Sherman
Browse files
Added some comments
parent
aeed917a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
3 deletions
+24
-3
examples/wrappers/openmm.f90
examples/wrappers/openmm.f90
+24
-3
No files found.
examples/wrappers/openmm.f90
View file @
f337005b
! Define two modules
! -----------------------------------------------------------------------------
! OpenMM(tm) Fortran 95 Interface (June 2009)
! -----------------------------------------------------------------------------
! 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
! C wrapper library (or object file) is available since that provides a
! simplified Fortran-style set of access methods that can be described
! adequately here without using any Fortran 2003 features.
!
! This is experimental and is not part of the OpenMM release. Improvements in
! substance and style would 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.
!
! Below we define two modules
! OpenMM_Types
! OpenMM_Types
! OpenMM
! OpenMM
! Only OpenMM need be imported into programs since
! Only "use OpenMM" need be included in Fortran program units since
! it will include OpenMM_Types also.
! that modules includes the other one.
! -----------------------------------------------------------------------------
! We use defined types containing opaque pointers as a way of getting
! a modicum of type safety without having to expose any of the OpenMM
! data structures here. You never have to do anything with those
! pointers to deal with these objects; they get created by the API
! for you and you just pass them back to the API when you want to
! do something with them.
module
OpenMM_Types
module
OpenMM_Types
implicit
none
implicit
none
...
...
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