.. index:: pair: namespace; rgpot_edip_capi .. _doxid-namespacergpot__edip__capi: namespace rgpot_edip_capi ========================= .. toctree:: :hidden: Overview ~~~~~~~~ C entry point for the EDIP silicon potential. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace rgpot_edip_capi { // global functions integer(c_int) function, public :ref:`rgpot_edip_force`(integer(c_int), intent(in), value natoms, real(c_double), dimension(3, natoms), intent(in) positions, real(c_double), dimension(3, 3), intent(in) cell, real(c_double), dimension(3, natoms), intent(out) forces, real(c_double), intent(out) energy); } // namespace rgpot_edip_capi .. _details-namespacergpot__edip__capi: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ C entry point for the EDIP silicon potential. Only ``bind(c)`` names leave this library; the physics module exports no external symbols of its own that C could collide with. The neighbour table lives here, saved across calls so vesin reuses its buffers. Global Functions ---------------- .. index:: pair: function; rgpot_edip_force .. _doxid-namespacergpot__edip__capi_1a86f18310e11315d4dc47efc10a049f3d: .. ref-code-block:: cpp :class: doxyrest-title-code-block integer(c_int) function, public rgpot_edip_force(integer(c_int), intent(in), value natoms, real(c_double), dimension(3, natoms), intent(in) positions, real(c_double), dimension(3, 3), intent(in) cell, real(c_double), dimension(3, natoms), intent(out) forces, real(c_double), intent(out) energy) Evaluate EDIP forces and energy. ``positions`` and ``forces`` are ``3 * natoms`` doubles, x/y/z interleaved; ``cell`` is nine doubles, row-major, one cell vector per row. Returns zero on success, non-zero on failure with the message available through ``rgpot_fortran_last_error``.