Hello Amanj
Mesh%X (alias X) as you said is the x coordinates of nodes which are read from the geometry file.
Mesh%XEL (respectively YEL) is a vector that gives the x coordinates per element.
So at the end, these two structures contain the same data, but the data are organized differently.
For example, for P1 element (discretization 11 ), X%R is a vector with dimension (NPOIN), this means that for a node I, its x coordinate is given by X%R(I).
whereas XEL is a structure with dimension (NELEM,3). This means that for any element E, its nodes have their x coordinates given by XEL(E,1),XEL(E,2)and XEL(E,3)
In subroutine PTEL11, the only difference is on the organization (and the size) of X and XEL.
To compute the surface of elements, XEL and YEL are used directly (see subroutine sur11.1). The comments in the header of subroutine geoelt is somehow misleading, the computation of area is not done for isoparametric element.
I hope that this helps
with my best regards
Riadh ATA