Return the number of MM atoms in the system.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | value | :: | s_prt |
function C_ommp_get_mm_atoms(s_prt) bind(c, name='ommp_get_mm_atoms')
!! Return the number of MM atoms in the system.
implicit none
type(c_ptr), value :: s_prt
type(ommp_system), pointer :: s
integer(ommp_integer) :: C_ommp_get_mm_atoms
call c_f_pointer(s_prt, s)
C_ommp_get_mm_atoms = s%top%mm_atoms
end function C_ommp_get_mm_atoms