@@ -12,7 +12,7 @@ extern "C" {
1212/** C API version. Bumped whenever the API is changed.
1313 * @since API version 22
1414 */
15- #define DP_C_API_VERSION 24
15+ #define DP_C_API_VERSION 25
1616
1717/**
1818 * @brief Neighbor list.
@@ -31,7 +31,7 @@ extern DP_Nlist* DP_NewNlist(int inum_,
3131 int * ilist_ ,
3232 int * numneigh_ ,
3333 int * * firstneigh_ );
34- /*
34+ /**
3535 * @brief Create a new neighbor list with communication capabilities.
3636 * @details This function extends DP_NewNlist by adding support for parallel
3737 * communication, allowing the neighbor list to be used in distributed
@@ -68,7 +68,7 @@ extern DP_Nlist* DP_NewNlist_comm(int inum_,
6868 int * recvproc ,
6969 void * world );
7070
71- /*
71+ /**
7272 * @brief Set mask for a neighbor list.
7373 *
7474 * @param nl Neighbor list.
@@ -78,6 +78,16 @@ extern DP_Nlist* DP_NewNlist_comm(int inum_,
7878 **/
7979extern void DP_NlistSetMask (DP_Nlist * nl , int mask );
8080
81+ /**
82+ * @brief Set mapping for a neighbor list.
83+ *
84+ * @param nl Neighbor list.
85+ * @param mapping mapping from all atoms to real atoms, in size nall.
86+ * @since API version 25
87+ *
88+ **/
89+ extern void DP_NlistSetMapping (DP_Nlist * nl , int * mapping );
90+
8191/**
8292 * @brief Delete a neighbor list.
8393 *
0 commit comments