- sprintf(libdir, "%s%cshare%cgromacs%ctop%cgurgle.dat", parent,
- DIR_SEPARATOR, DIR_SEPARATOR,
- DIR_SEPARATOR, DIR_SEPARATOR);
- found = gmx_fexist(libdir);
- }
- if (!found)
- {
- sprintf(libdir, "%s%cshare%cgromacs-%s%ctop%cgurgle.dat", parent,
- DIR_SEPARATOR, DIR_SEPARATOR, VERSION,
- DIR_SEPARATOR, DIR_SEPARATOR);
- found = gmx_fexist(libdir);
- }
- if (!found)
- {
- sprintf(libdir, "%s%cshare%cgromacs%cgromacs-%s%ctop%cgurgle.dat", parent,
- DIR_SEPARATOR, DIR_SEPARATOR, DIR_SEPARATOR,
- VERSION, DIR_SEPARATOR, DIR_SEPARATOR);
+ sprintf(libdir, "%s%c%s%cgurgle.dat", parent,
+ DIR_SEPARATOR, GMXLIB_SEARCH_DIR, DIR_SEPARATOR);