arohl / gdis

A visualization program for the display, manipulation, and analysis of isolated molecules and periodic structures
GNU General Public License v2.0
42 stars 17 forks source link

FIX scrambled model display with plots #8

Closed ovhpa closed 6 years ago

ovhpa commented 6 years ago

Hello,

This is a fix for the problem of crazy structure display (which was not limited to arc files as I first though). The problem was that the display was ready and updated before the thread for initializing plots data was finished. Since that thread was loading all frames, display was picking whichever frame was currently under process. Fix is simply to wait for the thread to finish processing frames.

I also modify the file_arc.c to read energy (when available). The new version contains a lot of rewriting to get rid of tokenize calls, while that was maybe not that necessary.

Sincerely,