I am trying to convert all the coordinates of atoms within the simulation box of gromacs trajectory into a fractional coordinate by multiplying it with the inverse of a matrix.

I am using Fortran language and a libgmxfort library to read in the gromacs trajectory but the main issue that I am facing during this was storing coordinates (x,y,z) into separate variables as libgmxfort lib allows to store all the variables into a 3*n array using " a = trj%x(i1,j1) ", and separating x, y, z into individual variable from "a" is a task to further proceed.

Also, I tried " trj%frameArray(i1)%xyz(1,j1) ", which is not providing the correct values of coordinates for few of the atoms.

Below, I am attaching the code.

I will be grateful, if anyone can help regarding the above mentioned issue.

More Anupama Sharma's questions See All
Similar questions and discussions