Thanks to Tsjerk, David and Erik for replying. <br>This is in response to Erik's question on what is it I intend to do exactly. <br>I would like to view the source code for g_energy so that I can see what formula was used to calculate Cp as well as viscosity (obtained when the -vis option is used). I opened gmx_energy.c using gromacs-4.0.5/src/tools$ more gmx_energy.c and found a code which I think is the source code, but it is quite difficult to comprehend. I guess this code is written in the c++ language, which I am unfamiliar with, so I wanted to see if there was something else that had an easier-to-understand code and that's why I tried opening the g_energy.o file. This may be dumb but I am not quite used to the files and I will eventually get it.<br>
<br>If the gmx_energy.c file is the source code, is there a way convert it into, for example, fortran? <br><br>Thank you,<br>Lum<br><br>
<br>> Lum Nforbi wrote:<br>
>> Dear all,<br>
>><br>
>> I am having problems opening the g_energy.o file in the<br>
>> gromacs-4.0.5 folder. Can someone tell me how to open this file? What<br>
>> is the general way of opening .o files?<br>
>><br>
>> Thank you,<br>
>> Lum<br>
>><br>
> this is an intermediate file from the compiler. You do not need to<br>
> open it at any time.<br>
><br>
That's not entirely true. I've inspected .o-files at times to find the<br>
reason for certain linker problems. 'objdump', 'readelf' and 'nm' are<br>
examples of linux tools that can extract information form .o-files.<br>
Nevertheless, inspecting such files is only useful in very special<br>
situations. What is it that you intend to do exactly?<br>
<br>