| Quick navigation: | Home | Site Map || References | Biography || Copyright | Other copyright | Contact us | Advert | | |
[ccp4bb] gfortran compiler & direct access files |
||
- Protein crystallographyMain steps:- Protein purification- Crystallisation Special:- Programs for crystallography- X-ray detectors Basic tutorials:- Chemistry- Protein - Peptide - Amino Acids Xtal community:- CCP4BB |
CCP4bb navigationCCP4bb <-- 1999 <-- November 1999 <-- 30 November 1999Subject: gfortran compiler & direct access files From: Vellieux Frederic Frederic {- dot -} Vellieux {- at -} IBS {- dot -} FR Date: 2009-11-02 Dear subscribers, I was having a small problem with a program (compiled with gfortran) that gave me run time errors when writing to a direct access file. "Fortran runtime error: Record number not allowed for sequential access data transfer". And I could not figure out why. So I wrote a tiny-weeny program to test the writing to direct access files: PROGRAM TOTO IREC=1 ISIZ1=1870 OPEN(UNIT=23,ACCESS='SEQUENTIAL',STATUS='SCRATCH', . FORM='UNFORMATTED',RECL=ISIZ1) WRITE(23,REC=IREC) IREC END This program gives me the run time error when compiled with gfortran, but gives no such error when compiled with g77. So for those of you who develop code, and who want to link their software to the ccp4 libraries, I think it is wiser to use the configure --with-g77 option for ccp4 compilation if you want to write to direct access files. Perhaps this is a known bug in gfortran (I have sent an email to the gfortran developers and haven't heard from them yet), perhaps the version of gfortran I have here is obsolete... But I thought I should warn the developers who are on the list. Fred. CCP4bb navigationCCP4bb <-- 1999 <-- November 1999 <-- 30 November 1999 |
|
| ProteinCrystallography.org: Copyright 2006-2010 by Quid United Ltd |