C_ommp_get_pol_atoms Function

public function C_ommp_get_pol_atoms(s_prt) bind(c, name='ommp_get_pol_atoms')

Return the number of polarizable atoms in the system.

Arguments

Type IntentOptional Attributes Name
type(c_ptr), value :: s_prt

Return Value integer(kind=ommp_integer)


Contents

Source Code


Source Code

        function C_ommp_get_pol_atoms(s_prt) bind(c, name='ommp_get_pol_atoms')
            !! Return the number of polarizable atoms in the system.
            implicit none

            type(c_ptr), value :: s_prt
            type(ommp_system), pointer :: s
            integer(ommp_integer) :: C_ommp_get_pol_atoms
            
            call c_f_pointer(s_prt, s)

            C_ommp_get_pol_atoms = s%eel%pol_atoms
        end function C_ommp_get_pol_atoms