Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
listed_internal.cpp File Reference
#include "gmxpre.h"
#include "listed_internal.h"
#include <cstdlib>
+ Include dependency graph for listed_internal.cpp:

Description

This file defines functions needed internally by the module.

Author
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Functions

int glatnr (const int *global_atom_index, int i)
 Returns the global topology atom number belonging to local atom index i. More...
 

Function Documentation

int glatnr ( const int *  global_atom_index,
int  i 
)

Returns the global topology atom number belonging to local atom index i.

This function is intended for writing ascii output and returns atom numbers starting at 1. When global_atom_index=NULL returns i+1.