[Wien] Space group not found...and dstart segmentation fault!
B. Yanchitsky
yan at im.imag.kiev.ua
Thu Aug 10 18:01:29 CEST 2006
Hello Roberto,
It's looking very intriguing.
Function definition like
cputim_(dsec)
double *dsec;
{
comes from old C language.
New definition style really reads like
cputim_(double *dsec)
{
but this should not do matter.
What about old cputim.c with gnu C?
It's just interesting to see result.
Regards,
Bogdan
Roberto Iglesias wrote:
> Hello again!
>
> To Bogdan: my C compiler version is exactly the same as yours. I just ported an installation which I knew was
> working and sgroup is all right now, and both with cc and icc.
>
> But...there appeared a segmentation fault error when running dstart! I am no good at debugging in C, but a
> colleague of mine told me that the problem may be fixed changing the original cputim.c
>
>
>>#include <sys/types.h>
>>#include <sys/times.h>
>>#include <stdio.h>
>>
>>cputim_(dsec)
>>double *dsec;
>>{
>> struct tms buffer;
>>
>> times(&buffer);
>> *dsec = (double)buffer.tms_utime/100.0;
>>/* fprintf(stderr,"inside cputim: %lf\n",dsec);*/
>>}
>
>
>
> to
>
>
>>#include <sys/types.h>
>>#include <sys/times.h>
>>#include <stdio.h>
>>
>>cputim_(double *dsec)
>>{
>> struct tms buffer;
>>
>> times(&buffer);
>> *dsec = (double)buffer.tms_utime/100.0;
>>/* fprintf(stderr,"inside cputim: %lf\n",dsec);*/
>>}
>
>
> And voila! Then it works perfectly. By the way, I've never experienced any problem like that with dstart in
> any platform, so it may have something to do with the Opteron cluster itself.
>
> Thank you for all your useful comments and work!
>
> Best regards
>
> Roberto
>
> _______________________________________________
> Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
>
>
More information about the Wien
mailing list